TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2016 |
Maintained by Viking Warlock.
#import "VKArcProgressBar.h"
VKArcProgressBar *progress=[VKArcProgressBar alloc]init];
@property(nonatomic,copy)NSArray<UIColor*> *gradientColorList;
If your don't set this ,you will get the default colors pattern
progress.gradientColorList=@[[UIColor redColor],[UIColor yellowColor],[[UIColor greenColor]];
@property(nonatomic,assign)CGFloat width;
Default is 8
@property(nonatomic,assign)CGFloat minData;
@property(nonatomic,assign)CGFloat maxData;
Default is 0 and 80
-(void)setdata:(CGFloat)data andAnimated:(BOOL)animate;
The parameter data should less
than the maximum value and greater
than the minimum value,otherwise you may not get what you want.
@property(nonatomic,assign)CGFloat animatedTime;
if animatedTime <= 0
, it won't move
smoothly!
@property(nonatomic,assign)CGFloat startAngle;
@property(nonatomic,assign)CGFloat endAngle;
@property(nonatomic,copy)NSArray<NSNumber *> *customLocations;
value in the range [0,1]
,Default may not look good.The demo use 0.2,0.5,0.8
pod "VKArcGradientProgressView"
Contact me by an email if you have any question or advice
Copyright (C) 2016 Viking Warlock
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.