added setNeedsUpdate to textColorConfiguration
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
dba0b2dc4f
commit
f10ea3d5d6
@ -66,7 +66,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
|
||||
public var textColorConfiguration: AnyColorable = ViewColorConfiguration().with {
|
||||
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forDisabled: true)
|
||||
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
|
||||
}.eraseToAnyColorable()
|
||||
}.eraseToAnyColorable(){ didSet { setNeedsUpdate() }}
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Initializers
|
||||
|
||||
@ -155,7 +155,7 @@ extension Tabs {
|
||||
label.text = text
|
||||
label.textStyle = textStyle
|
||||
label.textPosition = textPosition
|
||||
label.textColor = textColorConfiguration.getColor(self)
|
||||
label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
|
||||
|
||||
//constaints
|
||||
labelWidthConstraint?.isActive = false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user