
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
38 lines
1.2 KiB
Objective-C
38 lines
1.2 KiB
Objective-C
//
|
|
// SGYProgressView.h
|
|
// xplan-ios
|
|
//
|
|
// Created by duoban on 2022/12/29.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SGYProgressView : UIView
|
|
/// 初始化方法
|
|
/// @param frame 圆形环的绘制区域
|
|
/// @param trackWidth 圆形环的宽度
|
|
- (instancetype)initWithFrame:(CGRect)frame trackWidth:(CGFloat)trackWidth NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
|
|
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
|
|
|
@property (nonatomic, strong) UIColor *progressColor; //进度条颜色
|
|
@property (nonatomic, strong) UIColor *progressBgColor; //进度条背景颜色
|
|
|
|
@property (nonatomic,assign)CGFloat progress; // 0.0 .. 1.0, default is
|
|
|
|
- (void)setProgress:(CGFloat)progress animated:(BOOL)animated;
|
|
|
|
/// 设置进度条
|
|
/// @param progress 进度条百分比
|
|
/// @param animated 是否开启动画
|
|
/// @param startAngle 起始角度
|
|
/// @param clockwise 进度条方向(是否顺时针)
|
|
- (void)setProgress:(CGFloat)progress animated:(BOOL)animated startAngle:(CGFloat )startAngle clockwise:(BOOL)clockwise;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|