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

# textPasteConfigurationSupporting(_:shouldAnimatePasteOf:to:)

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

```
optional func textPasteConfigurationSupporting(_ textPasteConfigurationSupporting: any UITextPasteConfigurationSupporting, shouldAnimatePasteOf attributedString: NSAttributedString, to textRange: UITextRange) -> Bool
```

## Parameters

`textPasteConfigurationSupporting`

The object that received the paste or drop request.

`attributedString`

The text that will be added to the text view.

`textRange`

The position in the text view where the paste or drop operation will place the text.

## Return Value

<doc://com.apple.documentation/documentation/Swift/false> if the paste or drop operation should not be animated; otherwise, <doc://com.apple.documentation/documentation/Swift/true>.

## Discussion

If you don’t want the system to animate the paste or drop operation, implement this method and return <doc://com.apple.documentation/documentation/Swift/false>. The operation is animated if you return <doc://com.apple.documentation/documentation/Swift/true> or if this method isn’t implemented.

---

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)