ProgressViewPlugin
@MainActor
public protocol ProgressViewPlugin : AnyObject
自定义进度条视图插件
-
设置或获取进度条当前颜色
Declaration
Swift
@MainActor var indicatorColor: UIColor? { get set }
-
设置或获取进度条大小
Declaration
Swift
@MainActor var indicatorSize: CGSize { get set }
-
设置或获取进度条当前进度
Declaration
Swift
@MainActor var progress: CGFloat { get set }
-
设置进度条当前进度,支持动画
Declaration
Swift
@MainActor func setProgress(_ progress: CGFloat, animated: Bool)