Contents

UITableViewDragDelegate

The interface for initiating drags from a table view.

Declaration

@MainActor protocol UITableViewDragDelegate : NSObjectProtocol

Mentioned in

Overview

Implement this protocol in the object that you use to initiate drags from your table view. The only required method of this protocol is the tableView(_:itemsForBeginning:at:) method, but you can implement other methods as needed to customize the drag behavior of your table view.

Assign your custom delegate object to the dragDelegate property of your table view.

Topics

Providing the items to drag

Tracking the drag session

Providing a custom preview

See Also

Drag and drop