Instance Property

previewProvider

A visual preview of the drag item, displayed while the user drags the item across the screen.

Declaration

var previewProvider: (() -> UIDragPreview?)? { get set }

Discussion

As the user drags an item across the screen, a preview of the item is displayed. You can change the preview by setting previewProvider to a block that returns a UIDragPreview object. The system invokes the block if and when it needs the drag item preview.

To use the default preview, set previewProvider to nil. To hide the preview, set previewProvider to a block that returns nil.