cut(_:)
Removes the selected content and writes the data for it to the pasteboard.
Declaration
optional func cut(_ sender: Any?)Parameters
- sender:
The object calling this method.
Mentioned in
Discussion
UIKit calls this method when the user selects the Cut command from an editing menu. Your implementation should write the selected content to the pasteboard and then remove it from your interface.