code review

This commit is contained in:
Suresh, Kamlesh 2020-05-11 20:05:51 -04:00
parent 1ea6f9a3b7
commit 4fd654c372

View File

@ -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
}