AppProgress
提供像Apple那样的加载动画。
CocoaPods
use_frameworks!
pod 'AppProgress'
应用扩展
为了使其在应用扩展中也可用,我们在内部不直接获取要显示的UIWindow,而是传递它。
use_frameworks!
pod 'AppProgressCore'
用法
显示
AppProgress.show()
完成
AppProgress.done()
错误
AppProgress.err()
信息
AppProgress.info()
方法
open static func set(colorType: ColorType)
open static func set(backgroundStyle: BackgroundStyle)
open static func set(minimumDismissTimeInterval: TimeInterval)
open static func show(string: String = "")
open static func done(string: String = "", completion: (() -> Void)? = nil)
open static func info(string: String = "", completion: (() -> Void)? = nil)
open static func err(string: String = "", completion: (() -> Void)? = nil)
open static func custom(image: UIImage?, imageRenderingMode: UIImageRenderingMode = .alwaysTemplate, string: String = "", isRotation: Bool = false, completion: (() -> Void)? = nil)
open static func dismiss(completion: (() -> Void)? = nil)
许可
MIT