Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
A container that manages hierarchical navigation with push and pop transitions.
NavigationStack(children: Component | Component[]): Component;
NavigationStack([ VStack([ Text("Welcome to the app"), NavigationLink("Go to Details", () => Text("Detail View") .navigationTitle("Details") ) ]) .navigationTitle("Home") ])
NavigationStack([ List([ NavigationLink("Settings", () => SettingsView()), NavigationLink("Profile", () => ProfileView()), ]) .navigationTitle("Home") ])
NavigationStack([ VStack([ Text("Main content") ]) .navigationTitle("My App") .toolbar( ToolbarItem({ placement: "topBarTrailing" }, [ Button("Edit", () => {}) ]) ) ])