- This is a SwiftUI Navigation Example supporting iPadOS 15+/macOS 11+.
- It uses only one
NavigationView()
and multipleNavigationLink()
s without using(value: P?)
. - For iOS I recommend alternative hierarchical setup, like using
TabView()
-
This avoids more recent deployment targets such as iOS 16 or MacOS 13. Apple suggests using
NavigationStack()
orNavigationSplitView()
to achieve more intricate views in their documentation but this may be prohibitive. -
This project details the need for many
ToolbarItem
uses in order to display all of this correctly in the navigation bar. -
This project further illustrates the need to have a "dummy" top-level view so when initialized the MacOS navigation
toolbar()
items are displayed correctly and continue to do so for child views.