<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextDragDelegate/textDraggableView(_:dragPreviewForLiftingItem:session:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UITextDragDelegate(im)textDraggableView:dragPreviewForLiftingItem:session:"
  },
  "title" : "textDraggableView(_:dragPreviewForLiftingItem:session:)"
}
-->

# textDraggableView(_:dragPreviewForLiftingItem:session:)

Asks the delegate for the preview to show during the lift animation that happens when a user begins to drag an item from a text view.

```
optional func textDraggableView(_ textDraggableView: any UIView & UITextDraggable, dragPreviewForLiftingItem item: UIDragItem, session: any UIDragSession) -> UITargetedDragPreview?
```

## Parameters

`textDraggableView`

The text view where the drag activity was started.

`item`

The drag item that is being lifted.

`session`

The drag session of the current drag activity.

## Return Value

A targeted drag preview to show during the lift animation, or `nil` to show the default preview.

## Discussion

You implement this method when you want to show a nondefault preview during the lift animation. If you return `nil`, the system shows default preview.

> Note:
> This method is not called when the ``doc://com.apple.uikit/documentation/UIKit/UITextDragRequest/suggestedItems`` array for the text drag request contains the drag item.

---

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)