---
title: "textDroppableView(_:previewForDroppingAllItemsWithDefault:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextdropdelegate/textdroppableview(_:previewfordroppingallitemswithdefault:)"
---

# textDroppableView(_:previewForDroppingAllItemsWithDefault:)

Asks the delegate for the preview to show during the drop animation.

## Declaration

```swift
optional func textDroppableView(_ textDroppableView: any UIView & UITextDroppable, previewForDroppingAllItemsWithDefault defaultPreview: UITargetedDragPreview) -> UITargetedDragPreview?
```

## Parameters

- `textDroppableView`: The text view that received the drop activity.
- `defaultPreview`: The preview that is displayed when the delegate doesn’t provide this method.

## Return Value

Return Value A target drag preview to show during the drop animation, or nil to show the default preview.

## Discussion

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