NavigationTransition

A type that defines the transition to use when navigating to a view.

ProtocoliOS 18.0+macOS 15.0+tvOS 18.0+watchOS 11.0+visionOS 2.0+NavigationTransition in SwiftUI

Declaration

React
type NavigationTransition =
  | 'automatic'
  | 'crossFade'
  | { zoom: { sourceID: string | number | boolean; in: string; }; }
  | AutomaticNavigationTransition
  | CrossFadeNavigationTransition
  | ZoomNavigationTransition;
Swift
protocol NavigationTransition

Pass a literal, or build one with SwiftUI.NavigationTransition from import { SwiftUI } from 'swiftui-react-native'.

Type properties

  • 'automatic'SwiftUI.NavigationTransition.automatic

    A style that automatically chooses the appropriate presentation transition for the current context.

  • 'crossFade'SwiftUI.NavigationTransition.crossFade

    A navigation transition that cross-fades between the appearing view and the disappearing view.

Type methods

Used by

See also

More in Navigation.