One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

ScaleTransition

struct · iOS 17.0+ · SDK 27.1

nonisolated struct ScaleTransition

Returns a transition that scales the view.

Members (5)

get · iOS 17.0+

scale

TypeScript
get scale(): number
Swift declaration
var scale: Double

The amount to scale the view by.

set · iOS 17.0+

scale

TypeScript
set scale(value: number)
Swift declaration
var scale: Double

The amount to scale the view by.

get · iOS 17.0+

anchor

TypeScript
get anchor(): UnitPoint
Swift declaration
var anchor: UnitPoint

The anchor point to scale the view around.

set · iOS 17.0+

anchor

TypeScript
set anchor(value: UnitPoint)
Swift declaration
var anchor: UnitPoint

The anchor point to scale the view around.

init · iOS 17.0+

init

TypeScript
static init(scale: number, anchor?: UnitPoint): ScaleTransition
Swift declaration
nonisolated init(_ scale: Double, anchor: UnitPoint = .center)

Creates a transition that scales the view by the specified amount.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

ScaleTransition.body(content:phase:)

This declaration needs Swift generic type arguments. (no canonical witness for Self)

All SwiftUICore types →