Commit 1b176a52 by Daniel Dahan

Merge pull request #351 from mohpor/development

Fixes TextField font and storyboard placeholder setter
parents d3650f18 2a401dc9
......@@ -147,11 +147,8 @@ public class TextField : UITextField {
/// The placeholderLabel font value.
@IBInspectable public override var font: UIFont? {
get {
return placeholderLabel.font
}
set(value) {
placeholderLabel.font = value
didSet {
placeholderLabel.font = self.font
}
}
......@@ -454,6 +451,7 @@ public class TextField : UITextField {
masksToBounds = false
borderStyle = .None
backgroundColor = nil
super.placeholder = nil
textColor = MaterialColor.darkText.primary
font = RobotoFont.regularWithSize(16)
prepareDivider()
......
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