IndicatorView

open class IndicatorView : UIView, IndicatorViewPlugin, ProgressViewPlugin

自定义指示器视图

DGActivityIndicatorView

Accessor

  • 当前动画类型

    Declaration

    Swift

    open var type: IndicatorViewAnimationType { get set }
  • 指示器颜色,默认白色

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    open var progress: CGFloat { get set }
  • 停止动画时是否自动隐藏,默认YES

    Declaration

    Swift

    open var hidesWhenStopped: Bool
  • 是否正在动画

    Declaration

    Swift

    open private(set) var isAnimating: Bool { get }

Lifecycle

  • 指定动画类型初始化

    Declaration

    Swift

    public init(type: IndicatorViewAnimationType)
  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    public required init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    open override func layoutSubviews()
  • Undocumented

    Declaration

    Swift

    open override var frame: CGRect { get set }
  • Undocumented

    Declaration

    Swift

    open override var bounds: CGRect { get set }
  • Undocumented

    Declaration

    Swift

    open override var intrinsicContentSize: CGSize { get }
  • Undocumented

    Declaration

    Swift

    open override func sizeThatFits(_ size: CGSize) -> CGSize

Public