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