removed comment and layout statement
This commit is contained in:
parent
7178ade848
commit
5ef0d54b97
@ -104,7 +104,6 @@ class TextViewEntryField: EntryField, UITextViewDelegate, ObservingTextFieldDele
|
|||||||
leadingConstraint?.constant = constant
|
leadingConstraint?.constant = constant
|
||||||
trailingConstraint?.constant = constant
|
trailingConstraint?.constant = constant
|
||||||
bottomConstraint?.constant = constant
|
bottomConstraint?.constant = constant
|
||||||
layoutIfNeeded()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -242,7 +241,7 @@ class TextViewEntryField: EntryField, UITextViewDelegate, ObservingTextFieldDele
|
|||||||
textView.placeholder = model.placeholder ?? ""
|
textView.placeholder = model.placeholder ?? ""
|
||||||
textView.placeholderFontStyle = model.placeholderFontStyle
|
textView.placeholderFontStyle = model.placeholderFontStyle
|
||||||
textView.placeholderTextColor = model.placeholderTextColor.uiColor
|
textView.placeholderTextColor = model.placeholderTextColor.uiColor
|
||||||
|
textView.setPlaceholderIfAvailable()
|
||||||
|
|
||||||
switch model.type {
|
switch model.type {
|
||||||
case .secure, .password:
|
case .secure, .password:
|
||||||
@ -273,9 +272,8 @@ class TextViewEntryField: EntryField, UITextViewDelegate, ObservingTextFieldDele
|
|||||||
adjustMarginConstraints(constant: 0)
|
adjustMarginConstraints(constant: 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
textView.setPlaceholderIfAvailable()
|
if !model.enabled {
|
||||||
// if !model.enabled {
|
isEnabled = false
|
||||||
// isEnabled = false
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user