AppProgress
拥有纯正的苹果风格加载效果。
CocoaPods
use_frameworks!
pod 'AppProgress'
App扩展
为了让App扩展也能使用,我们内部不是从UIApplication.shared.windows
获取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