replace(_:)
Removes the selected text and inputs the chosen replacement text.
Declaration
optional func replace(_ sender: Any?)Parameters
- sender:
The object calling this method.
Discussion
To invoke the standard system behavior for replacing text, call textInput(_:deferReplaceTextActionToSystem:) in your implementation of this method.