IndicatorView
@MainActor
open class IndicatorView : UIView, IndicatorViewPlugin, ProgressViewPlugin
自定义指示器视图
-
当前动画类型
Declaration
Swift
@MainActor open var type: IndicatorViewAnimationType { get set }
-
指示器颜色,默认白色
Declaration
Swift
@MainActor open var indicatorColor: UIColor? { get set }
-
设置或获取指示器大小,默认{37,37}
Declaration
Swift
@MainActor open var indicatorSize: CGSize { get set }
-
指示器进度,大于0小于1时开始动画,其它值停止动画。同setProgress(_:animated:)
Declaration
Swift
@MainActor open var progress: CGFloat { get set }
-
停止动画时是否自动隐藏,默认YES
Declaration
Swift
@MainActor open var hidesWhenStopped: Bool
-
是否正在动画
Declaration
Swift
@MainActor open private(set) var isAnimating: Bool { get }
-
指定动画类型初始化
Declaration
Swift
@MainActor public init(type: IndicatorViewAnimationType)
-
Undocumented
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
Undocumented
Declaration
Swift
@MainActor public required init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
@MainActor override open func layoutSubviews()
-
Undocumented
Declaration
Swift
@MainActor override open var frame: CGRect { get set }
-
Undocumented
Declaration
Swift
@MainActor override open var bounds: CGRect { get set }
-
Undocumented
Declaration
Swift
@MainActor override open var intrinsicContentSize: CGSize { get }
-
Undocumented
Declaration
Swift
@MainActor override open func sizeThatFits(_ size: CGSize) -> CGSize
-
开始动画
Declaration
Swift
@MainActor open func startAnimating()
-
停止动画
Declaration
Swift
@MainActor open func stopAnimating()
-
创建动画对象,子类可重写
Declaration
Swift
@MainActor open func animation() -> IndicatorViewAnimationProtocol
-
设置指示器进度,大于0小于1时开始动画,其它值停止动画。同progress
Declaration
Swift
@MainActor open func setProgress(_ progress: CGFloat, animated: Bool)