Instance Property

dragInteractionEnabled

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

Declaration

var dragInteractionEnabled: Bool { get set }

Discussion

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.