SpaceView 1.0.6

SpaceView 1.0.6

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发出的最后发布2019 年 5 月
SPM支持 SPM

Horoko 维护。



SpaceView 1.0.6

  • 作者
  • Horoko

SpaceView

CI Status Version License Platform

space

示例

SpaceView

  • SpaceView 在上方
//View will be shown on the top
self.showSpace(title: "title", description: "description", spaceOptions: [.spacePosition(position: .top)
])

SpaceView

  • SpaceView 在下方
//View will be shown at the bottom
self.showSpace(title: "title", description: "description", spaceOptions: [.spacePosition(position: .bot)
])

SpaceView

  • 使用默认样式的 SpaceView
self.showSpace(title: "title", description: "description", spaceOptions: [.spaceStyle(style: .success)
])
  • 设置 SpaceView 隐藏时间
//SpaceView will not hide
self.showSpace(title: "title", description: "description", spaceOptions: [.spaceTimer(timer: 3.0)
])
  • 设置 SpaceView 自动隐藏
//View will hide after 3 second
self.showSpace(title: "title", description: "description", spaceOptions: [ .shouldAutoHide(should: false)
])
  • 设置 SpaceView 图片
//Image which will be shown on the right side of spaceView
self.showSpace(title: "title", description: "description", spaceOptions: [.image(img: UIImage()),
])
  • 设置 SpaceView 滑动手势和点击事件处理器
//Set the your custom handlers. By default tap handler will hide SpaceView. 
//SwipeAction will perform after user did swipe SpaceView
self.showSpace(title: "title", description: "description", spaceOptions: [
.swipeAction {print("SPACE VIEW DID SWIPE")}, 
.tapAction {print("SPACE VIEW DID TAP")}
])

要运行示例项目,请先克隆仓库,然后在 Example 目录中执行 pod install

要求

  • iOS 8.0
  • Xcode 8.2

安装

通过 CocoaPods 可获得 SpaceView。要安装它,只需将以下行添加到 Podfile:

pod "SpaceView"

作者

Xopoko, [email protected]

许可证

SpaceView可在MIT许可证下使用。更多信息请参阅LICENSE文件。