One Logo Pool Ball
SwiftUI · IOS API REFERENCE

MagnifyGesture.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+

magnification

TypeScript
get magnification(): number
Swift declaration
var magnification: CGFloat

The relative amount that the gesture has magnified by. A value of 2.0 means that the user has interacted with the gesture to increase the magnification by a factor of 2 more than before the gesture.

set · iOS 17.0+

magnification

TypeScript
set magnification(value: number)
Swift declaration
var magnification: CGFloat

The relative amount that the gesture has magnified by. A value of 2.0 means that the user has interacted with the gesture to increase the magnification by a factor of 2 more than before the gesture.

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+

velocity

TypeScript
get velocity(): number
Swift declaration
var velocity: CGFloat

The current magnification velocity.

set · iOS 17.0+

velocity

TypeScript
set velocity(value: number)
Swift declaration
var velocity: CGFloat

The current magnification velocity.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →