//
//  XVInputFieldView.h
//  fastservice
//
//  Created by xuning on 2/3/24.
//  Copyright © 2024 FastService. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    InputTypeNumber,
    InputTypeText,
    InputTypePassword,
    InputTypePicCode,
    InputTypeSmsCode,
} InputType;

@interface XVInputFieldView : UIView

@property (nonatomic, strong) UILabel *titleLabel;

@property (nonatomic, strong) UITextField *textField;

@property (nonatomic, strong) UIButton *eyesButton;

@property (nonatomic, strong) UIButton *smsCodeButton;

@property (nonatomic, strong) UIButton *picCodeButton;

@property (nonatomic, strong) UILabel *voiceLabel;


@property (nonatomic,copy) void(^textEditingChanged)(NSString *obj);

/// 创建
/// @param type 类型
/// @param placeholder placeholder description
- (instancetype)initWithType:(InputType)type placeholder:(NSString *)placeholder;

@end

NS_ASSUME_NONNULL_END
