Move space to constants

This commit is contained in:
Ivan Zinovyev 2016-12-19 22:12:50 +03:00
parent 914e6524ec
commit f3d0fe080f
1 changed files with 2 additions and 2 deletions

View File

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