Instance Method


Returns custom information about how to display the item at the specified location during the drag.


- (UIDragPreviewParameters *)collectionView:(UICollectionView *)collectionView dragPreviewParametersForItemAtIndexPath:(NSIndexPath *)indexPath;



The collection view from which the drag operation originated.


The index path of the item being dragged.

Return Value

Drag parameters that indicate how to display the cell's content during a drag.


Use this method to customize the appearance of the item during drags. If you do not implement this method or if you implement it and return nil, the collection view uses the cell's visible bounds to create the preview.

In your implementation, create a UIDragPreviewParameters object and update the preview information for the specified item. Use the parameters to specify the portion of the cell that you want to be included in the drag preview or to change the background color drawn beneath your cell.

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