---
title: UISearchTextFieldPasteItem
framework: uikit
role: symbol
role_heading: Protocol
path: uikit/uisearchtextfieldpasteitem
---

# UISearchTextFieldPasteItem

A protocol that supports pasting tokens.

## Declaration

```swift
@MainActor protocol UISearchTextFieldPasteItem : UITextPasteItem
```

## Overview

Overview When implementing textPasteConfigurationSupporting(_:transform:), your UITextPasteDelegate can decide whether to paste the item as text or as a token. If the UITextPasteItem it receives is a UISearchTextFieldPasteItem, you can call setSearchTokenResult(_:) to prepare a token for pasting instead of text.

## Topics

### Providing a token

- [setSearchTokenResult(_:)](uikit/uisearchtextfieldpasteitem/setsearchtokenresult(_:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [UITextPasteItem](uikit/uitextpasteitem.md)

## See Also

### Pasteboard support

- [UITextPasteItem](uikit/uitextpasteitem.md)
- [UITextPasteDelegate](uikit/uitextpastedelegate.md)
- [UITextPasteConfigurationSupporting](uikit/uitextpasteconfigurationsupporting.md)
