From 29e4fcb165d7a616664f6bac2511a935e3ccb7d7 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 27 Jul 2023 15:34:46 -0500 Subject: [PATCH] made real update and not a forced one Signed-off-by: Matt Bruce --- VDS/Components/Label/Label.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 0e78d762..59358125 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -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 {