One Logo Pool Ball
SwiftUI · IOS API REFERENCE

RotateGesture.Value

struct · iOS 17.0+ · SDK 27.1

struct Value

The type representing the gesture's value.

Members (10)

get · iOS 17.0+

startAnchor

TypeScript
get startAnchor(): _SwiftUICore_UnitPoint
Swift declaration
var startAnchor: UnitPoint

The initial anchor point of the gesture in the modified view's coordinate space.

set · iOS 17.0+

startAnchor

TypeScript
set startAnchor(value: _SwiftUICore_UnitPoint)
Swift declaration
var startAnchor: UnitPoint

The initial anchor point of the gesture in the modified view's coordinate space.

get · iOS 17.0+

startLocation

TypeScript
get startLocation(): { x: number; y: number }
Swift declaration
var startLocation: CGPoint

The initial center of the gesture in the modified view's coordinate space.

set · iOS 17.0+

startLocation

TypeScript
set startLocation(value: { x: number; y: number })
Swift declaration
var startLocation: CGPoint

The initial center of the gesture in the modified view's coordinate space.

get · iOS 17.0+

time

TypeScript
get time(): globalThis.Date
Swift declaration
var time: Date

The time associated with the gesture's current event.

set · iOS 17.0+

time

TypeScript
set time(value: globalThis.Date)
Swift declaration
var time: Date

The time associated with the gesture's current event.

get · iOS 17.0+

rotation

TypeScript
get rotation(): _SwiftUICore_Angle
Swift declaration
var rotation: Angle

The relative amount that the gesture has rotated by. A value of 30 degrees means that the user has interacted with the gesture to rotate by 30 degrees relative to the amount before the gesture.

set · iOS 17.0+

rotation

TypeScript
set rotation(value: _SwiftUICore_Angle)
Swift declaration
var rotation: Angle

The relative amount that the gesture has rotated by. A value of 30 degrees means that the user has interacted with the gesture to rotate by 30 degrees relative to the amount before the gesture.

get · iOS 17.0+

velocity

TypeScript
get velocity(): _SwiftUICore_Angle
Swift declaration
var velocity: Angle

The current rotation velocity.

set · iOS 17.0+

velocity

TypeScript
set velocity(value: _SwiftUICore_Angle)
Swift declaration
var velocity: Angle

The current rotation velocity.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →