A proxy structure used to convert locations to/from coordinate spaces in the
hierarchy of the SwiftUI view associated with a
``UIGestureRecognizerRepresentable``.
Members (3)
get · iOS 18.0+
localLocation
TypeScript
get localLocation(): { x: number; y: number }
Swift declaration
@export(implementation) var localLocation: CGPoint { get }
The represented gesture recognizer's current location in the coordinate
space of the SwiftUI view it's attached to.
get · iOS 18.0+
localVelocity
TypeScript
get localVelocity(): ({ x: number; y: number }) | null
Swift declaration
@export(implementation) var localVelocity: CGPoint? { get }
The represented gesture recognizer's current velocity in the coordinate
space of the SwiftUI view it's attached to.
If the gesture recognizer does not implement a `velocityInView:` method,
returns nil.
get · iOS 18.0+
localTranslation
TypeScript
get localTranslation(): ({ x: number; y: number }) | null
Swift declaration
@export(implementation) var localTranslation: CGPoint? { get }
The represented gesture recognizer's current translation in the
coordinate space of the SwiftUI view it's attached to.
If the gesture recognizer does not implement a `translationInView:`
method, returns nil.
Skipped declarations
4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.