Asks the delegate if the specified text view should allow user interaction with the provided text attachment in the given range of text.
- iOS 7.0–10.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–10.0Deprecated
The text view containing the text attachment.
The text attachment.
The character range containing the text attachment.
true if interaction with the text attachment should be allowed;
false if interaction should not be allowed.
A text view calls this method if the user taps or long-presses the text attachment and its
image property is not
nil. Implementation of this method is optional. You can use this method to trigger an action in addition to displaying the text attachment inline with the text.