Protocol

UICollectionViewDropCoordinator

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

Declaration

@protocol UICollectionViewDropCoordinator

Overview

You do not create instances of this class yourself. When a drop occurs in the collection view, UIKit creates an instance of this class and passes it to your collectionView:performDropWithCoordinator: method. Use the object to let the collection view know how you want to animate the dropped items into position.

Topics

Getting the Dragged Items

items

The items being dragged.

Required.

Getting the Drop Location

destinationIndexPath

The index path at which to insert the item in the collection view.

Required.

Animating Items to Their Destination

- dropItem:toItemAtIndexPath:

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

Required.

- dropItem:intoItemAtIndexPath:rect:

Animates the item to the specified rectangle in the collection view.

Required.

- dropItem:toTarget:

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

Required.

Getting the Session Information

session

The drop session containing information about the transaction.

Required.

proposal

The current proposal for how to incorporate the dropped items.

Required.

Instance Methods

Relationships

Inherits From

See Also

Drag and Drop

Supporting Drag and Drop in Collection Views

Initiate drags and handle drops from a collection view.

UICollectionViewDragDelegate

The interface for initiating drags from a collection view.

UICollectionViewDropDelegate

The interface for handling drops in a collection view.

UICollectionViewDropProposal

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

UICollectionViewDropItem

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

UICollectionViewDropPlaceholderContext

An object that contains information about a placeholder in the collection view.

UIDataSourceTranslating

An advanced interface for managing a data source object.