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

# textDroppableView(_:willPerformDrop:)

Tells the delegate that the drop operation is about to happen.

## Declaration

```swift
optional func textDroppableView(_ textDroppableView: any UIView & UITextDroppable, willPerformDrop drop: any UITextDropRequest)
```

## Parameters

- `textDroppableView`: The text view that received the drop activity.
- `drop`: The drop request.

## Discussion

Discussion If you need to modify the drag items before the drop operation happens, provide the text view a pasteDelegate object that implements the paste(itemProviders:) method. In the implementation, do the item conversion and paste the text.
