canPerformAction(_:withSender:)
Indicates whether the text view can process a given action.
Declaration
func canPerformAction(_ action: Selector, withSender sender: Any?) -> BoolParameters
- action:
A selector for the action.
- sender:
The object that’s sending the message.
Mentioned in
Return Value
A Boolean value that indicates whether the text view can handle the action message.
Discussion
This method is similar to responds(to:), except that even if your text view implements the action message, it can decline to handle it by returning false from this method.