fixed issue where users set the textColor property directly

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-06 14:19:46 -06:00
parent aa6e55e55d
commit 5834b8fcd2

View File

@ -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
//------------------------------------------------------