//
//  MFDigitTextBox.h
//  mobilefirst
//
//  Created by Scott Pfeil on 1/17/17.
//  Copyright © 2017 Verizon Wireless. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MVMCoreUI/MFView.h>

@protocol MFDigitTextBoxDelegate <NSObject>
@optional
- (void)textFieldDidDelete:(UITextField *)textField;
@end

@interface MFDigitTextBox : UITextField <MVMCoreViewProtocol>

@property (nonatomic, assign) id<MFDigitTextBoxDelegate> mfTextBoxDelegate;

// Updates the ui to fit the right size.
- (void)updateView:(CGFloat)size;

// Error handling
- (void)setAsError;
- (void)hideError;

@end
