AFECircleProgressBar.h 974 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // AFECircleProgressBar.h
  3. // CircularView
  4. //
  5. // Created by shouyi.www on 2017/6/26.
  6. // Copyright © 2017年 shouyi.www. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <QuartzCore/QuartzCore.h>
  10. @interface AFECircleProgressBar : CALayer
  11. @property (nonatomic, assign) BOOL clockWise;
  12. @property (nonatomic, assign) CGFloat animateTime;
  13. @property (nonatomic, assign) CGFloat endAngle;
  14. @property (nonatomic, assign) CGFloat progressBarWidth;
  15. @property (nonatomic, assign) CGFloat maxValue;
  16. @property (nonatomic, assign) CGFloat minValue;
  17. @property (nonatomic, assign) CGFloat startAngle;
  18. @property (nonatomic, copy) NSArray<NSNumber *> *gradientLocation;
  19. @property (nonatomic, strong) NSMutableArray<UIColor *> *gradientColors;
  20. @property (nonatomic, assign) CGFloat progress;
  21. @property (nonatomic, strong) UIColor *progressBarTrackColor;
  22. - (void)setProgress:(CGFloat)percent animation:(BOOL)animated;
  23. - (void)_updateCircularPath;
  24. - (void)stopAnimation;
  25. @end