made real update and not a forced one
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
33163a6183
commit
29e4fcb165
@ -97,7 +97,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
|
|||||||
.sink { [weak self] notification in
|
.sink { [weak self] notification in
|
||||||
self?.setNeedsUpdate()
|
self?.setNeedsUpdate()
|
||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
isUserInteractionEnabled = true
|
|
||||||
backgroundColor = .clear
|
backgroundColor = .clear
|
||||||
numberOfLines = 0
|
numberOfLines = 0
|
||||||
lineBreakMode = .byWordWrapping
|
lineBreakMode = .byWordWrapping
|
||||||
@ -120,7 +120,6 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
|
|||||||
textStyle = .defaultStyle
|
textStyle = .defaultStyle
|
||||||
textPosition = .left
|
textPosition = .left
|
||||||
text = nil
|
text = nil
|
||||||
isUserInteractionEnabled = true
|
|
||||||
attributedText = nil
|
attributedText = nil
|
||||||
numberOfLines = 0
|
numberOfLines = 0
|
||||||
backgroundColor = .clear
|
backgroundColor = .clear
|
||||||
@ -223,6 +222,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
|
|||||||
|
|
||||||
private var actions: [LabelAction] = [] {
|
private var actions: [LabelAction] = [] {
|
||||||
didSet {
|
didSet {
|
||||||
|
isUserInteractionEnabled = !actions.isEmpty
|
||||||
if actions.isEmpty {
|
if actions.isEmpty {
|
||||||
tapGesture = nil
|
tapGesture = nil
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user