forked from WZF-Fei/ZFProgressView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZFProgressView.h
43 lines (34 loc) · 1.08 KB
/
ZFProgressView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// ZFProgressView.h
// ZFProgressView
//
// Created by macOne on 15/9/23.
// Copyright © 2015年 WZF. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger, ZFProgressViewStyle) {
ZFProgressViewStyleNone = 0,
ZFProgressViewStyleSquareSegment,
ZFProgressViewStyleRoundSegment,
};
@interface ZFProgressView : UIView
//进度线条宽度
@property (nonatomic,assign) CGFloat progressLineWidth;
//背景线条宽度
@property (nonatomic,assign) CGFloat backgourndLineWidth;
//进度百分比
@property (nonatomic,assign) CGFloat Percentage;
//背景填充颜色
@property (nonatomic,strong) UIColor *backgroundStrokeColor;
//进度条填充颜色
@property (nonatomic,strong) UIColor *progressStrokeColor;
//距离边框边距偏移量
@property (nonatomic,assign) CGFloat offset;
//步长
@property (nonatomic,assign) CGFloat step;
//数字字体颜色
@property (nonatomic,strong) UIColor *digitTintColor;
//style
- (instancetype) initWithFrame:(CGRect)frame style:(ZFProgressViewStyle)style;
-(void)setProgress:(CGFloat)Percentage Animated:(BOOL)animated;
@end