Commit 40f9a871 by Daniel Dahan

development: Samples/issue-15: fixed issue where setting dividerNormalHeight was…

development: Samples/issue-15: fixed issue where setting dividerNormalHeight was not having an affect.
parent 30bbe256
...@@ -103,12 +103,28 @@ open class TextField: UITextField { ...@@ -103,12 +103,28 @@ open class TextField: UITextField {
/// Divider normal height. /// Divider normal height.
@IBInspectable @IBInspectable
open var dividerNormalHeight: CGFloat = 1 open var dividerNormalHeight: CGFloat = 1 {
didSet {
guard !isEditing else {
return
}
dividerThickness = dividerNormalHeight
}
}
/// Divider active height. /// Divider active height.
@IBInspectable @IBInspectable
open var dividerActiveHeight: CGFloat = 2 open var dividerActiveHeight: CGFloat = 2 {
didSet {
guard isEditing else {
return
}
dividerThickness = dividerActiveHeight
}
}
/// Divider normal color. /// Divider normal color.
@IBInspectable @IBInspectable
......
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