---
title: "pasteAndSearch(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiresponderstandardeditactions/pasteandsearch(_:)"
---

# pasteAndSearch(_:)

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

## Declaration

```swift
optional func pasteAndSearch(_ sender: Any?)
```

## Parameters

- `sender`: The object calling this method.

## Discussion

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

- [cut(_:)](uikit/uiresponderstandardeditactions/cut(_:).md)
- [copy(_:)](uikit/uiresponderstandardeditactions/copy(_:).md)
- [paste(_:)](uikit/uiresponderstandardeditactions/paste(_:).md)
- [pasteAndGo(_:)](uikit/uiresponderstandardeditactions/pasteandgo(_:).md)
- [pasteAndMatchStyle(_:)](uikit/uiresponderstandardeditactions/pasteandmatchstyle(_:).md)
- [delete(_:)](uikit/uiresponderstandardeditactions/delete(_:).md)
