Commit 07d04f3f by Daniel Dahan

Merge pull request #352 from mohpor/development

Fixes programatically clearing the text property
parents 1b176a52 61c8ceb0
......@@ -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