code review
This commit is contained in:
parent
1ea6f9a3b7
commit
4fd654c372
@ -254,7 +254,7 @@ import UIKit
|
|||||||
self.showError = showError
|
self.showError = showError
|
||||||
if showError {
|
if showError {
|
||||||
observingTextFieldDelegate?.isValid?(textfield: self)
|
observingTextFieldDelegate?.isValid?(textfield: self)
|
||||||
entryFieldContainer.bottomBar?.backgroundColor = UIColor.mvmBlack.cgColor
|
entryFieldContainer.originalUI()
|
||||||
} else {
|
} else {
|
||||||
observingTextFieldDelegate?.isInvalid?(textfield: self)
|
observingTextFieldDelegate?.isInvalid?(textfield: self)
|
||||||
}
|
}
|
||||||
@ -276,8 +276,8 @@ import UIKit
|
|||||||
@objc func endInputing() {
|
@objc func endInputing() {
|
||||||
resignFirstResponder()
|
resignFirstResponder()
|
||||||
|
|
||||||
// If user did not enter text int ethe field dont show error yet.
|
// Don't show error till user starts typing.
|
||||||
if text?.count ?? 0 == 0{
|
guard text?.count ?? 0 != 0 else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user