UIActivityIndicatorView
@_spi(FW) extension UIActivityIndicatorView
@objc extension UIActivityIndicatorView: IndicatorViewPlugin, ProgressViewPlugin
-
快速创建指示器,可指定颜色,默认白色
Declaration
Swift
public static func fw_indicatorView(color: UIColor?) -> UIActivityIndicatorView
-
设置或获取指示器颜色
Declaration
Swift
open var indicatorColor: UIColor? { get set }
-
设置或获取指示器大小,默认中{20,20},大{37,37}
Declaration
Swift
open var indicatorSize: CGSize { get set }
-
指示器进度,大于0小于1时开始动画,其它值停止动画。同setProgress:animated:
Declaration
Swift
open var progress: CGFloat { get set }
-
设置指示器进度,大于0小于1时开始动画,其它值停止动画。同setProgress:
Declaration
Swift
open func setProgress(_ progress: CGFloat, animated: Bool)