One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

TransitionPhase

enum · iOS 17.0+ · SDK 27.1

@frozen enum TransitionPhase

An indication of which the current stage of a transition. When a view is appearing with a transition, the transition will first be shown with the `willAppear` phase, then will be immediately moved to the `identity` phase. When a view is being removed, its transition is changed from the `identity` phase to the `didDisappear` phase. If a view is removed while it is still transitioning in, then its phase will change to `didDisappear`. If a view is re-added while it is transitioning out, its phase will change back to `identity`. In the `identity` phase, transitions should generally not make any visual change to the view they are applied to, since the transition's view modifications in the `identity` phase will be applied to the view as long as it is visible. In the `willAppear` and `didDisappear` phases, transitions should apply a change that will be animated to create the transition. If no animatable change is applied, then the transition will be a no-op. - See Also: `Transition` - See Also: `AnyTransition`

Members (2)

get · iOS 17.0+

isIdentity

TypeScript
getIsIdentity($self: TransitionPhase): boolean
Swift declaration
var isIdentity: Bool { get }

A Boolean that indicates whether the transition should have an identity effect, i.e. not change the appearance of its view. This is true in the `identity` phase.

get · iOS 17.0+

value

TypeScript
getValue($self: TransitionPhase): number
Swift declaration
var value: Double { get }

A value that can be used to multiply effects that are applied differently depending on the phase. - Returns: Zero when in the `identity` case, -1.0 for `willAppear`, and 1.0 for `didDisappear`.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →