chore: Initial clean commit
- 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
This commit is contained in:
38
YuMi/CustomUI/SwitchView/XPSwitch.h
Normal file
38
YuMi/CustomUI/SwitchView/XPSwitch.h
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// YMSwitch.h
|
||||
// YUMI
|
||||
//
|
||||
// Created by YUMI on 2023/2/9.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef enum {
|
||||
CHSwitchShapeOval,
|
||||
CHSwitchShapeRectangle,
|
||||
CHSwitchShapeRectangleNoCorner
|
||||
} CHSwitchShape;
|
||||
|
||||
@interface XPSwitch : UIControl<UIGestureRecognizerDelegate>
|
||||
/** 开关状态读取与设置 */
|
||||
@property (nonatomic, getter = isOn) BOOL on;
|
||||
/** 开关形状枚举值:默认CHSwitchShapeOval */
|
||||
@property (nonatomic, assign) CHSwitchShape shape;
|
||||
/** 打开时的颜色 */
|
||||
@property (nonatomic, strong) UIColor *onTintColor;
|
||||
/** 关闭时的颜色 */
|
||||
@property (nonatomic, strong) UIColor *tintColor;
|
||||
/** 圆点颜色 */
|
||||
@property (nonatomic, strong) UIColor *thumbTintColor;
|
||||
/** 是否需要阴影效果 */
|
||||
@property (nonatomic, assign) BOOL shadow;
|
||||
/** 关闭时的阴影颜色 */
|
||||
@property (nonatomic, strong) UIColor *tintBorderColor;
|
||||
/** 打开时的阴影颜色 */
|
||||
@property (nonatomic, strong) UIColor *onTintBorderColor;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
Reference in New Issue
Block a user