Instance Method


Pastes the current contents of the pasteboard into your app's interface.


optional func paste(_ sender: Any?)



The object calling this method.


UIKit calls this method when the user selects the Paste command from an editing menu. Your implementation should read the data from the pasteboard and add the resulting content to your interface.

See Also

Handling Copy, Cut, Paste, and Delete Commands

func cut(Any?)

Removes the selected content and writes the data for it to the pasteboard.

func copy(Any?)

Copies the selected content to the pasteboard.

func delete(Any?)

Removes the selected content from your interface.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software