From 5834b8fcd2fcaa2a87c064a6daa8f0e269e46ed6 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 6 Mar 2024 14:19:46 -0600 Subject: [PATCH] fixed issue where users set the textColor property directly Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift index 37eff177..e7c7e8bc 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/Label/Label.swift @@ -46,6 +46,14 @@ public typealias ActionBlock = () -> () return !text.isEmpty || !attributedText.string.isEmpty } + open override var textColor: UIColor! { + didSet { + if let textColor { + textColorConfiguration = SurfaceColorConfiguration(textColor, textColor).eraseToAnyColorable() + } + } + } + //------------------------------------------------------ // MARK: - Convenience Setter For objective-C //------------------------------------------------------