ProgressView
@MainActor
open class ProgressView : UIView, ProgressViewPlugin
框架默认进度条视图
-
是否是环形,默认为true,false为扇形
Declaration
Swift
@MainActor open var annular: Bool { get set }
-
进度颜色,默认为白色
Declaration
Swift
@MainActor open var indicatorColor: UIColor? { get set }
-
设置或获取进度条大小,默认为{37, 37}
Declaration
Swift
@MainActor open var indicatorSize: CGSize { get set }
-
自定义线条颜色,默认为nil自动处理。环形时为color透明度0.1,扇形时为color
Declaration
Swift
@MainActor open var lineColor: UIColor? { get set }
-
自定义线条宽度,默认为0自动处理。环形时为3,扇形时为1
Declaration
Swift
@MainActor open var lineWidth: CGFloat { get set }
-
自定义线条样式,仅环形生效,默认为.kCGLineCapRound
Declaration
Swift
@MainActor open var lineCap: CGLineCap { get set }
-
自定义填充颜色,默认为nil
Declaration
Swift
@MainActor open var fillColor: UIColor? { get set }
-
自定义填充内边距,默认为0
Declaration
Swift
@MainActor open var fillInset: CGFloat { get set }
-
进度动画时长,默认为0.5
Declaration
Swift
@MainActor open var animationDuration: CFTimeInterval { get set }
-
当前进度,取值范围为0.0到1.0,默认为0
Declaration
Swift
@MainActor open var progress: CGFloat { get set }
-
Undocumented
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
Undocumented
Declaration
Swift
@MainActor public required init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
@MainActor override open class var layerClass: AnyClass { get }
-
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 setProgress(_ progress: CGFloat, animated: Bool)