Textview touch event flow down except link attribute text.


class LinkTextView: UITextView {
    override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
        let offsetPoint = CGPoint(x: point.x, y: point.y - textContainerInset.top)
        let index = layoutManager.characterIndex(for: offsetPoint,
                                                 in: textContainer,
                                                 fractionOfDistanceBetweenInsertionPoints: nil)
        return attributedText.attribute(.link, at: index, effectiveRange: nil) != nil
    }
}