So I experience crash in UItextview while user interacts with URL link there. All crash reports have iOS version 11 only. This looks like well-known bug in iOS 9, but there
A crash is caused by a UIDragInteraction
/UITextDragAssistant
on iOS 11.0 and 11.1. It is fixed on iOS 11.2. Subclassing your UITextView and disabling drag and drop gestures will prevent the crash for any iOS version:
class NoDragDropTextView: UITextView {
override func addGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer) {
// required to prevent drag and drop gestures
// also prevents a crash on iOS 11.0-11.1
gestureRecognizer.isEnabled = false
super.addGestureRecognizer(gestureRecognizer)
}
}