From 8a5b828a8480866834777f40889ee5acfcd3a598 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 17 Apr 2023 13:24:04 -0500 Subject: [PATCH] udpated method name Signed-off-by: Matt Bruce --- VDS/Components/Label/Label.swift | 2 +- VDS/Extensions/UITapGestureRecognizer.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Components/Label/Label.swift b/VDS/Components/Label/Label.swift index 535b5726..47bb0c28 100644 --- a/VDS/Components/Label/Label.swift +++ b/VDS/Components/Label/Label.swift @@ -253,7 +253,7 @@ open class Label: UILabel, Handlerable, ViewProtocol, Resettable, UserInfoable { @objc private func textLinkTapped(_ gesture: UITapGestureRecognizer) { for actionable in actions { // This determines if we tapped on the desired range of text. - if gesture.didTapAttributedTextInLabel(self, inRange: actionable.range) { + if gesture.didTapActionInLabel(self, inRange: actionable.range) { actionable.performAction() return } diff --git a/VDS/Extensions/UITapGestureRecognizer.swift b/VDS/Extensions/UITapGestureRecognizer.swift index 02dc14a6..1993fdec 100644 --- a/VDS/Extensions/UITapGestureRecognizer.swift +++ b/VDS/Extensions/UITapGestureRecognizer.swift @@ -10,7 +10,7 @@ import UIKit extension UITapGestureRecognizer { - public func didTapAttributedTextInLabel(_ label: UILabel, inRange targetRange: NSRange) -> Bool { + public func didTapActionInLabel(_ label: UILabel, inRange targetRange: NSRange) -> Bool { guard let attributedText = label.attributedText else { return false }