A graphical preview for a single drag item, used by the system after a drag has started and when no related animation is running.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
@interface UIDragPreview : NSObject
Overview
A UIDrag
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.