AppProgress 1.0.5

AppProgress 1.0.5

hideyuki okuni维护。



  • 作者
  • hideyuki okuni

AppProgress

拥有纯正的苹果风格加载效果。

CocoaPods

use_frameworks!

pod 'AppProgress'

App扩展

为了让App扩展也能使用,我们内部不是从UIApplication.shared.windows获取UIWindow来显示,而是直接传递。

use_frameworks!

pod 'AppProgressCore'

用法

显示

AppProgress

AppProgress.show()

完成

done

AppProgress.done()

错误

error

AppProgress.err()

信息

info

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