     @objc open var animationView: UIView?
 
     open var textReplacementType: TextReplacementType = .word
-    
+
     private var collapsedText: NSAttributedString?
     private var linkHighlighted: Bool = false
     private let touchSize = CGSize(width: 44, height: 44)

                return
            }

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

}

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)
