// // YMCaptchaTextLineView.h // MSYOUPAI // // Created by YoMi on 2023/5/5. // #import NS_ASSUME_NONNULL_BEGIN @interface YMCaptchaTextLineView : UIView typedef void(^YMCaptchaTextLineViewSelectChangeBlock)(YMCaptchaTextLineView *lineView, BOOL selected); @property (nonatomic, strong) UIView *lineView; @property (nonatomic, assign) BOOL selected; /** 下划线颜色 状态:未选中状态,且没有填充文字时 默认:[UIColor colorWithRed:49/255.0 green:51/255.0 blue:64/255.0 alpha:1] */ @property (nonatomic, copy) UIColor *underlineColorNormal; /** 下划线颜色 状态:选中状态时 默认:[UIColor colorWithRed:49/255.0 green:51/255.0 blue:64/255.0 alpha:1] */ @property (nonatomic, copy) UIColor *underlineColorSelected; /** 下划线颜色 状态:未选中状态,且有填充文字时 默认:[UIColor colorWithRed:49/255.0 green:51/255.0 blue:64/255.0 alpha:1] */ @property (nonatomic, copy) UIColor *underlineColorFilled; /** 选择状态改变时回调 */ @property (nonatomic, copy) YMCaptchaTextLineViewSelectChangeBlock __nullable selectChangeBlock; - (instancetype)initWithFrame:(CGRect)frame UNAVAILABLE_ATTRIBUTE; @end NS_ASSUME_NONNULL_END