Move space to constants
This commit is contained in:
parent
914e6524ec
commit
f3d0fe080f
|
|
@ -498,8 +498,8 @@ extension UIAnimatedTextField: UITextFieldDelegate {
|
|||
result = delegateResult
|
||||
}
|
||||
|
||||
if string == " " {
|
||||
if textField.text?.characters.count ?? 0 == 0 {
|
||||
if string == Constants.space {
|
||||
if textField.text?.isEmpty ?? true {
|
||||
result = false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue