SendIndicator 0.0.2

SendIndicator 0.0.2

测试已测试
语言语言 SwiftSwift
许可协议 MIT
发布上次发布2017年6月
SwiftSwift版本3.0.2
SPM支持SPM

Leonardo Cardoso维护。



showcase

另一个任务指示器

需求

  • iOS 8.0+
  • Swift 3.0+
  • Xcode 8.0+

安装

手动

如果您不希望使用上述任何一个依赖管理器,您可以手动将SendIndicator集成到项目中。

使用

您可以在Storyboard上使用SendIndicator,或者如果您想进行程序化操作,可以类似于创建UIView那样创建它。

let indicator = SendIndicator(frame: CGRect(x: 0, y: 0, width: 60, height: 35), palette: Palette(indicatorColor: .red)) // Choose a ration 12/7 for width/height
self.parentView.addSubview(downloadButton)
indicator.startAnimation()
indicator.stopAnimation()

Storyboard

最后,您可以直接从Interface Builder或Storyboard中自定义SendIndicator属性。

storyboard

许可协议

SendIndicator采用MIT许可协议发布。有关详细信息,请参阅LICENSE