fixed bug where someone could nil out attributedText and resetting the text...
This commit is contained in:
parent
1239f0d16d
commit
2da62b01fc
@ -135,10 +135,10 @@ 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()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user