Browse Source

validation textfield titleview showing while not editing or showing fixed

pull/1/head
Amrit Giri 4 years ago
parent
commit
ab8ba0247c
  1. 6
      GME Remit/Utilities/CustomUI/ValidationTextField.swift

6
GME Remit/Utilities/CustomUI/ValidationTextField.swift

@ -609,7 +609,11 @@ import RxSwift
} else if (!isValid && text != "") { } else if (!isValid && text != "") {
lineView.layer.borderColor = UIColor.themeRed.cgColor lineView.layer.borderColor = UIColor.themeRed.cgColor
titleLabel.textColor = UIColor.themeRed titleLabel.textColor = UIColor.themeRed
} else {
} else if !editingOrSelected && text == ""{
titleView.isHidden = true
titleView.alpha = 0.0
lineView.layer.borderColor = UIColor.themeText.cgColor
}else {
lineView.layer.borderColor = UIColor.themeText.cgColor lineView.layer.borderColor = UIColor.themeText.cgColor
titleLabel.textColor = UIColor.themeText titleLabel.textColor = UIColor.themeText
} }

Loading…
Cancel
Save