Skip to content

How is viewId determined when PopView is used? #25

Closed
@djrobby

Description

@djrobby

I'm using your NavigationStack in combination with SwiftUI's default Tabbed app, with each tab having its own NavigationView. I have wrapped the entire app's ContentView into NavigationStackView so that I can display **PushView()**s in fullscreen mode, including over the Tab bar. My question is where do I specify/define the viewId for the nested view that I would like to PopView() back to? Documentation provides a vague example of how to supply destinationId of the ChildView() when PushView() is used but I have a hard time understanding how the passed on childViewId helps in popping back to the parent or maybe a view nested 2 levels inside NavigationView? Can you please clarify or provide a slightly complex example? Thank you again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions