Open toseefkhilji opened 5 years ago
Subclassing SkyFloatingLabelTextField and implementing these methods solved it for me
override func becomeFirstResponder() -> Bool {
if !hasText {
placeholder = ""
}
setTitleVisible(true)
return super.becomeFirstResponder()
}
override func resignFirstResponder() -> Bool {
if !hasText {
placeholder = title
}
setTitleVisible(hasText || hasErrorMessage)
return super.resignFirstResponder()
}
I am trying to show title text and hide placeholder on focus of text field.
Is there any workaround on this problem?
Thanks...