border check so that BAU flow wont get affected
This commit is contained in:
parent
13dbe6b7bb
commit
7b3018e608
@ -24,15 +24,15 @@
|
||||
|
||||
@interface MFTextView : UIView <UITextViewDelegate>
|
||||
|
||||
@property (weak, nonatomic) id delegate;
|
||||
@property (weak, nonatomic, nullable) id delegate;
|
||||
@property (weak, nonatomic) IBOutlet CustomTextView *textView;
|
||||
@property (assign, nonatomic) BOOL hideBorder;
|
||||
@property (strong, nonatomic) UIBezierPath *borderPath;
|
||||
@property (strong, nonatomic, nullable) UIBezierPath *borderPath;
|
||||
@property (nonatomic, readwrite) BOOL errorShowing;
|
||||
@property (weak, nonatomic) SeparatorView *bottomLine;
|
||||
@property (weak, nonatomic, nullable) SeparatorView *bottomLine;
|
||||
|
||||
|
||||
+(MFTextView *) MFTextViewWithPlaceholderString:(NSString *) placeholder delegate:(id) delegate;
|
||||
+(MFTextView *_Nullable) MFTextViewWithPlaceholderString:(NSString *_Nullable) placeholder delegate:(id _Nullable ) delegate;
|
||||
|
||||
- (void)makeBordersForTextView;
|
||||
|
||||
|
||||
@ -200,9 +200,7 @@
|
||||
view.textView.smartInsertDeleteType = UITextSmartInsertDeleteTypeNo;
|
||||
}
|
||||
[view didSetFont:view.textView.font];
|
||||
|
||||
// self.bottomLine = bottomLine;
|
||||
|
||||
view.hideBorder = YES;
|
||||
return view;
|
||||
}
|
||||
|
||||
@ -210,12 +208,14 @@
|
||||
#pragma mark - bordered textview
|
||||
- (void)makeBordersForTextView {
|
||||
|
||||
SeparatorView *bottomLine = [SeparatorView separatorAddToView:self position:SeparatorPositionBot];
|
||||
[SeparatorView separatorAddToView:self position:SeparatorPositionBot];
|
||||
self.placeHolderLabel.font = [MFStyler fontB3];
|
||||
[self.textView setFont:[MFStyler fontB2]];
|
||||
[self.textView setTextContainerInset:UIEdgeInsetsMake(PaddingTwo, PaddingTwo, PaddingTwo, PaddingOne)];
|
||||
[MVMCoreUICommonViewsUtility addDismissToolbar:self.textView delegate:self.delegate];
|
||||
self.errorShowing = false;
|
||||
[MVMCoreUICommonViewsUtility addDismissToolbarToTextView:self.textView delegate:self.delegate];
|
||||
self.errorShowing = NO;
|
||||
self.hideBorder = NO;
|
||||
[self layoutIfNeeded];
|
||||
}
|
||||
|
||||
- (void)addBezierPathForBorders {
|
||||
@ -245,9 +245,8 @@
|
||||
- (void)drawRect:(CGRect)rect {
|
||||
[super drawRect:rect];
|
||||
[self.borderPath removeAllPoints];
|
||||
self.layer.cornerRadius = 0;
|
||||
self.hideBorder = false;
|
||||
if (!self.hideBorder) {
|
||||
self.layer.cornerRadius = 0;
|
||||
[self addBezierPathForBorders];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user