洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
974 B

7 months ago
  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