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 }