Contents

UIDragPreview

A graphical preview for a single drag item, used by the system after a drag has started and when no related animation is running.

Declaration

@MainActor class UIDragPreview

Overview

A UIDragPreview object is a visual representation of the drag item. The preview is displayed while the user moves the item across the screen with their finger (after the lift animation completes). The preview disappears when the user lifts their finger, triggering the start of the drop or cancellation animation.

Topics

Initializing a drag item preview

Getting the visual appearance parameters

Accessing the view

Initializers

Default Implementations

See Also

Custom drag item previews