The interface for configuring a drag session.


protocol UIDragSession


Accessing Local Information

var localContext: Any?

The optional custom data that you attach to a drag session, visible only to the app in which the drag activity begins.



Inherits From

See Also

Drag Sources

class UIDragItem

A representation of an underlying data item being dragged from one location to another.

protocol UIDragDropSession

The common interface for querying the state of both drag sessions and drop sessions.

protocol UIDragAnimating

The interface for providing custom animation alongside the system's lift, drop, and cancellation animations.

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