Commit 61c8ceb0 by M. Porooshani

fixes programatically clearing the text property

parent 2a401dc9
......@@ -151,6 +151,15 @@ public class TextField : UITextField {
placeholderLabel.font = self.font
}
}
/// TextField's text property observer.
public override var text: String? {
didSet {
if (text == nil || text!.isEmpty) && !self.isFirstResponder() {
placeholderEditingDidEndAnimation()
}
}
}
/// The placeholderLabel text value.
@IBInspectable public override var placeholder: String? {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment