GGProgressView.h 1.2 KB

1234567891011121314151617181920212223242526272829
  1. //
  2. // GGProgressView.h
  3. //
  4. // Created by GG on 2016/10/20.
  5. // Copyright © 2016年 GG. All rights reserved.
  6. //
  7. #import <UIKit/UIKit.h>
  8. //typedef NS_ENUM(NSInteger, GGProgressViewStyle) {
  9. // GGProgressViewStyleDefault, // 默认
  10. // GGProgressViewStyleTrackFillet , // 轨道圆角(默认半圆)
  11. // GGProgressViewStyleAllFillet, //进度与轨道都圆角
  12. //};
  13. @interface GGProgressView : UIView
  14. @property(nonatomic) float progress; // 0.0 .. 1.0, 默认0 超出为1.
  15. //@property(nonatomic) GGProgressViewStyle progressViewStyle;
  16. //@property(nonatomic,assign) BOOL isTile; //背景图片是平铺填充 默认NO拉伸填充 设置为YES时图片复制平铺填充
  17. @property(nonatomic, strong, nullable) UIColor* progressTintColor;
  18. @property(nonatomic, strong, nullable) UIColor* trackTintColor;
  19. //@property(nonatomic, strong, nullable) UIImage* progressImage; //进度条背景图片,默认拉伸填充 优先级大于背景色
  20. //@property(nonatomic, strong, nullable) UIImage* trackImage; //轨道填充图片
  21. //- (instancetype)initWithFrame:(CGRect)frame;
  22. //- (instancetype)initWithFrame:(CGRect)frame progressViewStyle:(GGProgressViewStyle)style;
  23. @end