Documentation Index
Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
Use this file to discover all available pages before exploring further.
NavigationStack(children: Component | Component[]): Component;
children
Component | Component[]
required
The root view or views to display in the navigation stack.
Support
Usage
Basic navigation stack
NavigationStack([
VStack([
Text("Welcome to the app"),
NavigationLink("Go to Details", () =>
Text("Detail View")
.navigationTitle("Details")
)
])
.navigationTitle("Home")
])
With navigation links
NavigationStack([
List([
NavigationLink("Settings", () => SettingsView()),
NavigationLink("Profile", () => ProfileView()),
])
.navigationTitle("Home")
])
NavigationStack([
VStack([
Text("Main content")
])
.navigationTitle("My App")
.toolbar(
ToolbarItem({ placement: "topBarTrailing" }, [
Button("Edit", () => {})
])
)
])
See Also