@implementation XYSTagTextField

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.xys_width = screenWidth;
        self.xys_height = 25;
        self.placeholder = @"多个标签用逗号或者换行隔开";
        self.font = [UIFont systemFontOfSize:15];
    }
    return self;
}

-(void)deleteBackward
{
    if (!self.hasText) {
        !self.deleteBlock ? : self.deleteBlock() ;
    }
    [super deleteBackward];
}

@end
