Structure

DragGesture.Value

The current state of the event sequence.

Declaration

struct DragGesture.Value

Topics

Instance Properties

var location: CGPoint

The location of the current event.

var predictedEndLocation: CGPoint

A prediction of where the final location would be if dragging stopped now, based on the current drag velocity.

var predictedEndTranslation: CGSize

A prediction of what the final translation would be if dragging stopped now, based on the current drag velocity.

var startLocation: CGPoint

The location of the first event.

var time: Date

The time associated with the current event.

var translation: CGSize

The total translation from the first event to the current event.

Operator Functions

Relationships

From Protocol

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