-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColorChangingBarProgressView.h
More file actions
28 lines (20 loc) · 996 Bytes
/
ColorChangingBarProgressView.h
File metadata and controls
28 lines (20 loc) · 996 Bytes
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
//
// BarProgressView.h
// BarProgressView
//
// modified by behlul ucar
// based on initial work of jonathan king
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#define defaultWidthOfBar 1 //Default width in pixels, which can be changed with the 'widthOfBar' property.
#define defaultSpaceBetweenBars 0.0 //Space in pixels between the bars, edit this constant to change the width.
#define defaultCompleteBarStartColor [UIColor orangeColor]
#define defaultCompleteBarEndColor [UIColor greenColor]
#define defaultEmptyBarFillColor [UIColor colorWithRed:101.0/255.0f green:105.0/255.0f blue:87.0/255.0f alpha:1] //The color the bars will be when they are 'empty'
@interface ColorChangingBarProgressView : UIView {}
@property (nonatomic) int widthOfBar;
@property (nonatomic) float progress;
@property (nonatomic, retain) UIColor* completeBarStartColor;
@property (nonatomic, retain) UIColor* completeBarEndColor;
@property (nonatomic, retain) UIColor *emptyBarFillColor;
@end