<!--
{
  "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/textPasteConfigurationSupporting(_:transform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextPasteDelegate(im)textPasteConfigurationSupporting:transformPasteItem:"
  },
  "title" : "textPasteConfigurationSupporting(_:transform:)"
}
-->

# textPasteConfigurationSupporting(_:transform:)

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

```
optional func textPasteConfigurationSupporting(_ textPasteConfigurationSupporting: any UITextPasteConfigurationSupporting, transform item: any UITextPasteItem)
```

## Parameters

`textPasteConfigurationSupporting`

The object that received the paste or drop request.

`item`

The text paste item included in the paste or drop operation.

## Discussion

This method is called for each text paste item during a paste or drop operation. You’re required to call one of the `setResult` methods (see Setting a text paste item’s result value) on `item`, but the call doesn’t have to be within the scope of the transform method. It can, for example, be part of the asynchronous handling code for the [`itemProvider`](/documentation/UIKit/UITextPasteItem/itemProvider), or it can be part of a completion block. You can make the call whenever you prefer.

It’s safe to use the provided [`UITextPasteItem`](/documentation/UIKit/UITextPasteItem) object on any thread, but the transform method is always called on the main thread.

---

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)