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

# UITextPasteDelegate

The interface for handling pasting and dropping of text, using item providers.

```
@MainActor protocol UITextPasteDelegate : NSObjectProtocol
```

## Topics

### Preparing to paste a text paste item

[`-  textPasteConfigurationSupporting:transformPasteItem:`](/documentation/UIKit/UITextPasteDelegate/textPasteConfigurationSupporting(_:transform:))

Tells the delegate to transform the pasted or dropped text item.

### Pasting the text paste item

[`-  textPasteConfigurationSupporting:combineItemAttributedStrings:forRange:`](/documentation/UIKit/UITextPasteDelegate/textPasteConfigurationSupporting(_:combineItemAttributedStrings:for:))

Asks the delegate to combine multiple strings into a single attributed string.

[`-  textPasteConfigurationSupporting:performPasteOfAttributedString:toRange:`](/documentation/UIKit/UITextPasteDelegate/textPasteConfigurationSupporting(_:performPasteOf:to:))

Asks the delegate to explicitly handle the final incorporation of a pasted or dropped string of text into the text view.

### Animating the paste operation

[`-  textPasteConfigurationSupporting:shouldAnimatePasteOfAttributedString:toRange:`](/documentation/UIKit/UITextPasteDelegate/textPasteConfigurationSupporting(_:shouldAnimatePasteOf:to:))

Asks the delegate if the paste or drop operation should be animated.

## Relationships

### Inherits From

[`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)