diff --git a/VDS/Extensions/UITapGestureRecognizer.swift b/VDS/Extensions/UITapGestureRecognizer.swift index 1993fdec..612a11ca 100644 --- a/VDS/Extensions/UITapGestureRecognizer.swift +++ b/VDS/Extensions/UITapGestureRecognizer.swift @@ -10,6 +10,11 @@ import UIKit extension UITapGestureRecognizer { + /// Determines if the touch event has a action attribute within the range given + /// - Parameters: + /// - label: UILabel in question + /// - targetRange: Range to look within + /// - Returns: Wether the range in the label has an action public func didTapActionInLabel(_ label: UILabel, inRange targetRange: NSRange) -> Bool { guard let attributedText = label.attributedText else { return false }