copy(_:)
Copies the selected content to the pasteboard.
Declaration
optional func copy(_ sender: Any?)Parameters
- sender:
The object calling this method.
Mentioned in
Discussion
UIKit calls this method when the user selects the Copy command from an editing menu. Your implementation should write the selected content to the pasteboard without removing the selection from your interface.