diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 7c01add3..5ba6e04a 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -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