FancyLoader
全屏活动指示器的一个简单处理方式。
易于使用
开始使用
// Show Loader
Loader.shared.show(image:String)
// Hide Loader
Loader.shared.hide()
控制
自定义外观
// You can modify the background color of the view by calling the initializer
Loader.shared.show(color:UIColor)
// To set the default image
//Call this in your AppDelegate file inside the didFinishLaunchingWithOptions function
Loader.shared.setImage(Image: "Ball")
// and the default background alpha is 0.7, you can of cos change this or set 1 so you can set custome color alpha
Loader.shared.show(backgroundAlpha:Double)
Loader.shared.showLoader(image:String?, color:UIColor?, backgroundAlpha:Double?)
示例
要运行示例项目,请先克隆仓库,然后从示例目录运行pod install
安装
fancyloader通过CocoaPods提供。要安装它,只需将以下行添加到Podfile中
pod 'fancyloader'
作者
sagaya, [email protected]
许可证
fancyloader 在 MIT 许可下可用。更多信息请参阅 LICENSE 文件。