                 return
             }
 
-            if shouldCollapse && check(touch: touch, inRange: range) {
+            if shouldCollapse && check(touch: touch, isInRange: range) {
                 delegate?.willCollapseLabel(self)
                 collapsed = true
                 delegate?.didCollapseLabel(self)

            return false
        }

        if collapsed && check(touch: touch, inRange: range) {
            linkHighlighted = highlighted
            setNeedsDisplay()
            return true

}

extension UILabel {
    open func check(touch: UITouch, isInRange targetRange: NSRange) -> Bool {
        let touchPoint = touch.location(in: self)
        let index = characterIndex(at: touchPoint)
        return NSLocationInRange(index, targetRange)
