Merge branch 'bugfix/label-textColor-setter' into 'release/11_4_0'
fixed issue where users set the textColor property directly I forgot to override the textColor in the Label, therefore, the color wasn't being used. No bug as of yet, but there will be before this gets pushed. Co-authored-by: Matt Bruce <matt.bruce@verizon.com> See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1064
This commit is contained in:
commit
d31b9f7880
@ -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
|
||||
//------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user