From 383eee527bf09578560a8c5bcf51b76e83cbe44d Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 31 Aug 2023 08:53:25 -0500 Subject: [PATCH] fixed bug in label Signed-off-by: Matt Bruce --- VDS/Components/Label/Label.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 59640545..d242c2e6 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