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.

Declaration

class UIDragInteraction : NSObject

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.

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software