fixed bug in label
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
794f68a67f
commit
383eee527b
@ -58,9 +58,9 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
|
|||||||
|
|
||||||
private var actions: [LabelAction] = [] {
|
private var actions: [LabelAction] = [] {
|
||||||
didSet {
|
didSet {
|
||||||
|
isUserInteractionEnabled = !actions.isEmpty
|
||||||
if actions.isEmpty {
|
if actions.isEmpty {
|
||||||
tapGesture = nil
|
tapGesture = nil
|
||||||
isUserInteractionEnabled = true
|
|
||||||
accessibilityTraits = .staticText
|
accessibilityTraits = .staticText
|
||||||
} else {
|
} else {
|
||||||
//add tap gesture
|
//add tap gesture
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user