Apple introduced NavigationStack and NavigationSplitView at WWWDC 2022 to replace
NavigationView, which has been deprecated. The documentation for NavigationSplitView
includes sample code, but the code does not work as it is missing model data. Here is
some model data to allow the sample code in the documentation to …
Most mobile apps contain more than one screen, so navigation from one screen to
another is necessary. A typical implementation is to have a list of items where
tapping on a single item will navigate to a detailed page for that item. SwiftUI
framework provides NavigationView and NavigationLink for this purpose.