fixed bug in label

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-31 08:53:25 -05:00
parent 794f68a67f
commit 383eee527b

View File

@ -58,9 +58,9 @@ open class Label: UILabel, ViewProtocol, UserInfoable {
private var actions: [LabelAction] = [] {
didSet {
isUserInteractionEnabled = !actions.isEmpty
if actions.isEmpty {
tapGesture = nil
isUserInteractionEnabled = true
accessibilityTraits = .staticText
} else {
//add tap gesture