Drag and drop customization
Extend the standard drag and drop support for text views to include custom types of content.
Overview
The UITextField and UITextView classes provide built-in support for dragging and dropping text and images. You can extend this support to your own custom data types by adding a text drag delegate or text drop delegate to your views. Your text drag delegate adopts the UITextDragDelegate protocol and is responsible for providing the items to be dragged. Your text drop delegate adopts the UITextDropDelegate protocol and handles drops containing items with your custom data types.
Topics
Text view additions
UITextDragDelegateUITextDropDelegateUITextDraggableUITextDragOptionsUITextDroppableUITextDropEditability
Drag content
Drop management
UITextDropRequestUITextDropProposalUITextDropProposal.ActionUITextDropProposal.PerformerUITextDropProposal.ProgressMode