diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 7ecb79cd..67e53abe 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -135,15 +135,15 @@ open class Label: UILabel, ViewProtocol, UserInfoable { override open var text: String? { get { _text } set { - if _text != newValue { + if _text != newValue || newValue != attributedText?.string { _text = newValue useAttributedText = false - attributes = nil + attributes?.removeAll() setNeedsUpdate() } } } - + /// Whether the View is enabled or not. open override var isEnabled: Bool { didSet { setNeedsUpdate() } }