GiGaMaskTime/GIGA/Common/Views/CustomSwitch/LXCustomSwith.h

34 lines
1.1 KiB
Objective-C

//
// LXCustomSwith.h
// CustomUISwitch
//
// Created by lianxiang on 2018/9/7.
// Copyright © 2018年 GIGA. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,LXCustomSwithShape){
LXCustomSwithShapeNormal,
LXCustomSwithShapeRectangle,
LXCustomSwithShapeNoCorner
};
@interface LXCustomSwith : UIControl<UIGestureRecognizerDelegate>
@property (nonatomic, getter = isOn) BOOL on;
@property (nonatomic, assign) LXCustomSwithShape 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;
@property (nonatomic, strong) UILabel *onBackLabel;//打开时候的文字
@property (nonatomic, strong) UILabel *offBackLabel;//关闭时候的文字
@property (nonatomic, strong) UILabel *thumbLabel;//
@property (nonatomic,copy) NSString *onthumTitle;
@property (nonatomic,copy) NSString *offthumTitle;
@end