FWProgressView
@interface FWProgressView : UIView <FWProgressViewPlugin>
框架默认进度条视图
-
是否是环形,默认YES,NO为扇形
Declaration
Objective-C
@property (nonatomic) BOOL annular;
-
进度颜色,默认白色
Declaration
Objective-C
@property (nonatomic, strong) UIColor *_Nonnull color;
-
设置或获取进度条大小,默认{37, 37}
Declaration
Objective-C
@property (nonatomic) CGSize size;
-
自定义线条颜色,默认nil自动处理。环形时为color透明度0.1,扇形时为color
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIColor *lineColor;
-
自定义线条宽度,默认0自动处理。环形时为3,扇形时为1
Declaration
Objective-C
@property (nonatomic) CGFloat lineWidth;
-
自定义线条样式,仅环形生效,默认kCGLineCapRound
Declaration
Objective-C
@property (nonatomic) CGLineCap lineCap;
-
自定义填充颜色,默认nil
Declaration
Objective-C
@property (nonatomic, strong, nullable) UIColor *fillColor;
-
自定义填充内边距,默认0
Declaration
Objective-C
@property (nonatomic) CGFloat fillInset;
-
进度动画时长,默认0.5
Declaration
Objective-C
@property (nonatomic) CFTimeInterval animationDuration;
-
当前进度,0.0到1.0,默认0
Declaration
Objective-C
@property (nonatomic) CGFloat progress;
-
设置当前进度,支持动画
Declaration
Objective-C
- (void)setProgress:(CGFloat)progress animated:(BOOL)animated;