Contents

init(root:)

Creates a navigation stack that manages its own navigation state.

Declaration

@MainActor @preconcurrency init(@ViewBuilder root: () -> Root) where Data == NavigationPath

Parameters

  • root:

    The view to display when the stack is empty.