Contents

pasteAndSearch(_:)

Pastes the current contents of the pasteboard into your app’s interface and performs a search.

Declaration

optional func pasteAndSearch(_ sender: Any?)

Parameters

  • sender:

    The object calling this method.

Discussion

UIKit calls this method when the user selects the Paste and Search command from an editing menu. Your implementation should read the data from the pasteboard and begin a search based on the content.

See Also

Handling copy, cut, paste, and delete commands