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
|
||||
self?.setNeedsUpdate()
|
||||
}.store(in: &subscribers)
|
||||
isUserInteractionEnabled = true
|
||||
|
||||
backgroundColor = .clear
|
||||
numberOfLines = 0
|
||||
lineBreakMode = .byWordWrapping
|
||||
@ -120,7 +120,6 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
|
||||
textStyle = .defaultStyle
|
||||
textPosition = .left
|
||||
text = nil
|
||||
isUserInteractionEnabled = true
|
||||
attributedText = nil
|
||||
numberOfLines = 0
|
||||
backgroundColor = .clear
|
||||
@ -223,6 +222,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable {
|
||||
|
||||
private var actions: [LabelAction] = [] {
|
||||
didSet {
|
||||
isUserInteractionEnabled = !actions.isEmpty
|
||||
if actions.isEmpty {
|
||||
tapGesture = nil
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user