UIActivityIndicatorView

@objc extension UIActivityIndicatorView: IndicatorViewPlugin, ProgressViewPlugin

系统指示器默认实现指示器视图协议

  • 设置或获取指示器颜色

    Declaration

    Swift

    @MainActor
    open var indicatorColor: UIColor? { get set }
  • 设置或获取指示器大小,默认中{20,20},大{37,37}

    Declaration

    Swift

    @MainActor
    open var indicatorSize: CGSize { get set }
  • 指示器进度,大于0小于1时开始动画,其它值停止动画。同setProgress:animated:

    Declaration

    Swift

    @MainActor
    open var progress: CGFloat { get set }
  • 设置指示器进度,大于0小于1时开始动画,其它值停止动画。同setProgress:

    Declaration

    Swift

    @MainActor
    open func setProgress(_ progress: CGFloat, animated: Bool)