Instance Method


Asks the delegate if the text view can accept a drop operation.


optional func textDroppableView(_ textDroppableView: UIView & UITextDroppable, proposalForDrop drop: UITextDropRequest) -> UITextDropProposal



The text view that received the drop activity.


The drop request.

Return Value

A text drop proposal that specifies the behavior of the drop operation.


This method is called multiple times while the user performs the drag and drop activity. For instance, it's called when the user drags items into the text view. It's also called when the text position changes while the user drags items over the text view. If the drag session changes, which happens when the user adds more items to the drag item set, the method is called again.

Because this method is called frequently, it's important for your implementation to do only what is necessary to return the appropriate drop proposal as quickly as possible.

See Also

Accepting a Drop Activity