One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

OffsetTransition

struct · iOS 17.0+ · SDK 27.1

nonisolated struct OffsetTransition

Returns a transition that offset the view by the specified amount.

Members (3)

get · iOS 17.0+

offset

TypeScript
get offset(): { width: number; height: number }
Swift declaration
var offset: CGSize

The amount to offset the view by.

set · iOS 17.0+

offset

TypeScript
set offset(value: { width: number; height: number })
Swift declaration
var offset: CGSize

The amount to offset the view by.

init · iOS 17.0+

init

TypeScript
static init(offset: { width: number; height: number }): OffsetTransition
Swift declaration
nonisolated init(_ offset: CGSize)

Creates a transition that offset 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.

OffsetTransition.body(content:phase:)

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

All SwiftUICore types →