Your proposed solution for handling a drop in a table view.


class UITableViewDropProposal : UIDropProposal


Create instances of this class in the tableView(_:dropSessionDidUpdate:withDestinationIndexPath:) method of your drop delegate object. You create drop proposals to let the table view know how you intend to handle a drop at the currently specified location. The table view uses that information to provide appropriate visual feedback to the user.


Creating a Drop Proposal

init(operation: UIDropOperation, intent: UITableViewDropProposal.Intent)

Creates a drop proposal object that specifies how to incorporate the dropped content.

Getting the Proposed Drop Location

var intent: UITableViewDropProposal.Intent

The option to use when incorporating dropped items into your content.

enum UITableViewDropProposal.Intent

Constants indicating how you intend to handle a drop.

enum UIDropOperation

Operation types that determine how a drag and drop activity resolves when the user drops a drag item.


Inherits From

Conforms To

See Also

Drag and Drop

Supporting Drag and Drop in Table Views

Initiate drags and handle drops from a table view.

protocol UITableViewDragDelegate

The interface for initiating drags from a table view.

protocol UITableViewDropDelegate

The interface for handling drops in a table view.

protocol UITableViewDropCoordinator

An interface for coordinating your custom drop-related actions with the table view.

protocol UITableViewDropItem

The data associated with an item being dropped into the table view.