Instance Method

drop(_:toRowAt:)

Animates the item to the specified index path in the table view.

Required.

Declaration

func drop(_ dragItem: UIDragItem, toRowAt indexPath: IndexPath) -> UIDragAnimating

Parameters

dragItem

The dragged item that you want to animate into position.

indexPath

The index path to use as the destination for the animation.

Discussion

Use this method to animate the dragged item to the specific location in the table view. Typically, you use this method for content that originated in the collection view and is moving to a new location.

See Also

Animating Rows to Their Destination

func drop(UIDragItem, to: UIDragPreviewTarget) -> UIDragAnimating

Animates the item to an arbitrary location in your view hierarchy.

Required.

func drop(UIDragItem, to: UITableViewDropPlaceholder) -> UITableViewDropPlaceholderContext

Animates the item to the specified location and inserts a placeholder cell at that location.

Required.