An interaction to enable dropping of items onto a view, employing a delegate to instantiate objects and respond to calls from the drop session.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
class UIDropInteraction : NSObject
An interaction to enable dropping of items onto a view, employing a delegate to instantiate objects and respond to calls from the drop session.
SDKs
Framework
class UIDropInteraction : NSObject
init(delegate: UIDrop Interaction Delegate)
Initializes a drop interaction object with a custom delegate object.
var delegate: UIDrop Interaction Delegate?
An object that configures and controls a drop interaction.
protocol UIDrop Interaction Delegate
The interface for configuring and controlling a drop interaction.
var allows Simultaneous Drop Sessions: Bool
A Boolean value that specifies whether the drop interaction handles more than one simultaneous drop session.
protocol UIDrag Interaction Delegate
The interface for configuring and controlling a drag interaction.
protocol UIDrop Interaction Delegate
The interface for configuring and controlling a drop interaction.
class UIDrag Interaction
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.