<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchTextFieldPasteItem",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UISearchTextFieldPasteItem"
  },
  "title" : "UISearchTextFieldPasteItem"
}
-->

# UISearchTextFieldPasteItem

A protocol that supports pasting tokens.

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

## Overview

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

## Topics

### Providing a token

[`-  setSearchTokenResult:`](/documentation/UIKit/UISearchTextFieldPasteItem/setSearchTokenResult(_:))

Sets a paste item’s search token from an item provider.

## Relationships

### Inherits From

[`UITextPasteItem`](/documentation/UIKit/UITextPasteItem)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)