fixed issue with attributedText setting not working correctly
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d7435068a3
commit
547b03ac1c
@ -135,20 +135,18 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
|
||||
/// Text that will be used in the label.
|
||||
private var _text: String!
|
||||
override open var text: String! {
|
||||
get { _text }
|
||||
set {
|
||||
didSet {
|
||||
_text = text
|
||||
textSetMode = .text
|
||||
_text = newValue
|
||||
styleText(newValue)
|
||||
setNeedsUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
///AttributedText that will be used in the label.
|
||||
override open var attributedText: NSAttributedString? {
|
||||
get { super.attributedText }
|
||||
set {
|
||||
didSet {
|
||||
textSetMode = .attributedText
|
||||
styleAttributedText(newValue)
|
||||
setNeedsUpdate()
|
||||
}
|
||||
}
|
||||
|
||||
@ -424,3 +422,5 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user