added setNeedsUpdate to textColorConfiguration

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-02 10:54:44 -05:00
parent dba0b2dc4f
commit f10ea3d5d6
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
public var textColorConfiguration: AnyColorable = ViewColorConfiguration().with { public var textColorConfiguration: AnyColorable = ViewColorConfiguration().with {
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forDisabled: true) $0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forDisabled: true)
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false) $0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forDisabled: false)
}.eraseToAnyColorable() }.eraseToAnyColorable(){ didSet { setNeedsUpdate() }}
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Initializers // MARK: - Initializers

View File

@ -155,7 +155,7 @@ extension Tabs {
label.text = text label.text = text
label.textStyle = textStyle label.textStyle = textStyle
label.textPosition = textPosition label.textPosition = textPosition
label.textColor = textColorConfiguration.getColor(self) label.textColorConfiguration = textColorConfiguration.eraseToAnyColorable()
//constaints //constaints
labelWidthConstraint?.isActive = false labelWidthConstraint?.isActive = false