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

# pasteAndMatchStyle(_:)

Pastes the current contents of the pasteboard into your app’s interface using the text style of the target.

## Declaration

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

## Parameters

- `sender`: The object calling this method.

## Discussion

Discussion 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 using the target’s current text style.

## 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)
- [pasteAndSearch(_:)](uikit/uiresponderstandardeditactions/pasteandsearch(_:).md)
- [delete(_:)](uikit/uiresponderstandardeditactions/delete(_:).md)
