Class

UIDragInteraction

An interaction to enable dragging of items from a view, employing a delegate to provide drag items and to respond to calls from the drag session.

Topics

Initializing the Drag Interaction

init(delegate: UIDragInteractionDelegate)

Initializes a drag interaction object with a custom delegate object.

Managing Drag Interactions

var allowsSimultaneousRecognitionDuringLift: Bool

A Boolean value that determines whether the interaction allows recognition of other gestures during the lift activity.

var delegate: UIDragInteractionDelegate?

An object that configures and controls a drag interaction.

protocol UIDragInteractionDelegate

The interface for configuring and controlling a drag interaction.

Enabling the Interactions

var isEnabled: Bool

A Boolean value that specifies whether the drag interaction responds to touches and is allowed to participate in a drag activity.

class var isEnabledByDefault: Bool

A device-dependent Boolean value that indicates whether a newly-instantiated drag interaction is allowed to participate in a drag activity.

Relationships

Inherits From

See Also

Drag-and-Drop Interactions

protocol UIDragInteractionDelegate

The interface for configuring and controlling a drag interaction.

protocol UIDropInteractionDelegate

The interface for configuring and controlling a drop interaction.

protocol UIInteraction

The interface for attaching a gesture-based behavior to a view, such as to express a drag, drop, or spring-loaded interaction.

class UIDropInteraction

An interaction to enable dropping of items onto a view, employing a delegate to instantiate objects and respond to calls from the drop session.