Commit 27e62b38 by Daniel Dahan

Merge pull request #331 from mohpor/development

Fixes Hide title label for text field (issue #330)
parents f8fde490 f4529f73
...@@ -370,6 +370,11 @@ public class TextField : UITextField { ...@@ -370,6 +370,11 @@ public class TextField : UITextField {
@IBInspectable public override var text: String? { @IBInspectable public override var text: String? {
didSet { didSet {
textFieldDidChange() textFieldDidChange()
if(!editing){
if text == nil || text!.isEmpty {
hideTitleLabel()
}
}
} }
} }
......
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