Commit 23d3045d by Orkhan Alikhanov

Prevent TextField.tintColor being overridden

parent 3e263783
......@@ -205,6 +205,8 @@ open class TextField: UITextField, Themeable {
@IBInspectable
open var placeholderActiveColor = Color.blue.base {
didSet {
/// Keep tintColor update here. See #1229
tintColor = placeholderActiveColor
updatePlaceholderLabelColor()
}
}
......@@ -533,7 +535,6 @@ fileprivate extension TextField {
/// Updates the placeholderLabel text color.
func updatePlaceholderLabelColor() {
tintColor = placeholderActiveColor
placeholderLabel.textColor = isEditing ? placeholderActiveColor : placeholderNormalColor
}
......
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