get translation(): Promise<{ width: number; height: number }>
Swift declaration
var translation: CGSize { get }
The total translation from the start of the drag gesture to the
current event of the drag gesture.
This is equivalent to `location.{x,y} - startLocation.{x,y}`.
get · iOS 13.0+
startLocation
TypeScript
get startLocation(): Promise<{ x: number; y: number }>
Swift declaration
var startLocation: CGPoint
The location of the drag gesture's first event.
set · iOS 13.0+
startLocation
TypeScript
setStartLocation(value: { x: number; y: number }): Promise<void>
Swift declaration
var startLocation: CGPoint
The location of the drag gesture's first event.
get · iOS 13.0+
predictedEndLocation
TypeScript
get predictedEndLocation(): Promise<{ x: number; y: number }>
Swift declaration
var predictedEndLocation: CGPoint { get }
A prediction, based on the current drag velocity, of where the final
location will be if dragging stopped now.
get · iOS 13.0+
predictedEndTranslation
TypeScript
get predictedEndTranslation(): Promise<{ width: number; height: number }>
Swift declaration
var predictedEndTranslation: CGSize { get }
A prediction, based on the current drag velocity, of what the final
translation will be if dragging stopped now.
get · iOS 13.0+
time
TypeScript
get time(): Promise<globalThis.Date>
Swift declaration
var time: Date
The time associated with the drag gesture's current event.
set · iOS 13.0+
time
TypeScript
setTime(value: globalThis.Date): Promise<void>
Swift declaration
var time: Date
The time associated with the drag gesture's current event.
get · iOS 13.0+
location
TypeScript
get location(): Promise<{ x: number; y: number }>
Swift declaration
var location: CGPoint
The location of the drag gesture's current event.
set · iOS 13.0+
location
TypeScript
setLocation(value: { x: number; y: number }): Promise<void>
Swift declaration
var location: CGPoint
The location of the drag gesture's current event.
get · iOS 13.0+
velocity
TypeScript
get velocity(): Promise<{ width: number; height: number }>
Swift declaration
@export(implementation) var velocity: CGSize { get }