From f10ea3d5d6b9a1c53217d7602ffab84b38af033b Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 2 Aug 2023 10:54:44 -0500 Subject: [PATCH] added setNeedsUpdate to textColorConfiguration Signed-off-by: Matt Bruce --- VDS/Components/Label/Label.swift | 2 +- VDS/Components/Tabs/Tab.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index b4e77888..092b48a2 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -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 diff --git a/VDS/Components/Tabs/Tab.swift b/VDS/Components/Tabs/Tab.swift index 4ec39b4e..4720fabe 100644 --- a/VDS/Components/Tabs/Tab.swift +++ b/VDS/Components/Tabs/Tab.swift @@ -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