Commit 61c8ceb0 by M. Porooshani

fixes programatically clearing the text property

parent 2a401dc9
...@@ -152,6 +152,15 @@ public class TextField : UITextField { ...@@ -152,6 +152,15 @@ public class TextField : UITextField {
} }
} }
/// TextField's text property observer.
public override var text: String? {
didSet {
if (text == nil || text!.isEmpty) && !self.isFirstResponder() {
placeholderEditingDidEndAnimation()
}
}
}
/// The placeholderLabel text value. /// The placeholderLabel text value.
@IBInspectable public override var placeholder: String? { @IBInspectable public override var placeholder: String? {
get { get {
......
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