Instance Property


A Boolean value indicating whether the collection view supports drags and drops between apps.


var dragInteractionEnabled: Bool { get set }


The default value of this property is true on iPad and false on iPhone. Changing the value to true on iPhone makes it possible to drag content from the collection view to another app on iPhone and to receive content from other apps.

See Also

Managing Drag Interactions

var dragDelegate: UICollectionViewDragDelegate?

The delegate object that manages the dragging of items from the collection view.

protocol UICollectionViewDragDelegate

The interface for initiating drags from a collection view.

var hasActiveDrag: Bool

A Boolean value indicating whether items were lifted from the collection view and have not yet been dropped.

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