//
//  MFTextView.h
//  myverizon
//
//  Created by chintar on 14/12/15.
//  Copyright © 2015 Verizon Wireless. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SeparatorView.h"

@interface CustomTextView: UITextView

@end

@protocol MFTextViewDelegate <NSObject>

@optional

// Dismisses the keyboard.
- (void)dismissFieldInput:(nullable id)sender;

@end

@interface MFTextView : UIView <UITextViewDelegate>

@property (weak, nonatomic, nullable) id delegate;
@property (nullable, weak, nonatomic) IBOutlet CustomTextView *textView;
@property (assign, nonatomic) BOOL hideBorder;
@property (strong, nonatomic, nullable) UIBezierPath *borderPath;
@property (nonatomic, readwrite) BOOL errorShowing;
@property (weak, nonatomic, nullable) SeparatorView *bottomLine;

+(MFTextView *_Nullable) MFTextViewWithPlaceholderString:(NSString *_Nullable) placeholder delegate:(id _Nullable ) delegate;

//This method will make the UI as per brand refresh (Similar to UITextField)
- (void)makeBordersForTextView;

@end
