udpated method name

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-04-17 13:24:04 -05:00
parent afd9111a95
commit 8a5b828a84
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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 }