Protocol

UITextDragRequest

The interface for describing the attributes of a drag activity originating in a text view.

Declaration

protocol UITextDragRequest

Topics

Getting the Drag Items

var existingItems: [UIDragItem]

The array of drag items present in a drag session.

Required.

var suggestedItems: [UIDragItem]

An array of drag items that the system provides when the text drag delegate doesn't provide custom drag items.

Required.

Getting Information About the Text

var dragRange: UITextRange

A range of text associated with a drag item in an active drag session that originated in a text view.

Required.

var isSelected: Bool

A Boolean value indicating whether text is selected for dragging.

Required.

Getting the Drag Session

var dragSession: UIDragSession

The active drag session.

Required.

Relationships

Inherits From