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