Build: Simple Navigation Flow
This screen demonstrates managing navigation paths using a NavigationStack. The user can navigate forward to a detail screen and go back using the navigation bar.
Target UI
Main Screen +---------------------+ | Simple Navigation | | | | [Go to Detail] | +---------------------+ Detail Screen +---------------------+ | Detail View | | | | [Back] (nav bar) | +---------------------+
Use NavigationStack to manage navigation path
Main screen with a button labeled 'Go to Detail'
Tapping the button pushes a DetailView onto the stack
DetailView shows a text 'Detail View' and a back button in the navigation bar
Back button returns to the main screen