Protocol

UICollectionViewDropItem

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

Declaration

@protocol UICollectionViewDropItem

Overview

When handling a drop, you get instances of this class from the items property of the UICollectionViewDropCoordinator object. Use them to retrieve the data for the items being dragged and to plan any animations related to dropping the items. You do not create instances of this class yourself.

Topics

Getting the Drag Item

dragItem

The item that was dragged.

Required.

Getting the Item Information

previewSize

The size of the drag item's preview.

Required.

sourceIndexPath

The index path of the item in the collection view, if any.

Required.

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.

UICollectionViewDropCoordinator

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

UICollectionViewDropProposal

Your proposed solution for handling a drop in a 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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software