drop(_:toItemAt:)
Animates the item to the specified index path in the collection view.
Declaration
func drop(_ dragItem: UIDragItem, toItemAt indexPath: IndexPath) -> any UIDragAnimatingParameters
- dragItem:
The dragged item that you want to animate into position.
- indexPath:
The index path to use as the destination for the animation.
Mentioned in
Discussion
Use this method to animate the dragged item to the specific location in the collection view. Typically, you use this method for content that originated in the collection view and is moving to a new location.