SwiftUI 5.5 Flat and Hierarchical Navigation
2 min readSep 27, 2021
- Navigation in your app has to be appropriate: Don’t use non-logical navigation.
- Navigation must always be intuitive: Users don’t have time to look for the right section in your app
- Don’t steal time from your users: They will delete the app
- Navigation must be clear: Users have to always know which screen they are on now
When building a business application the 2 main navigation structures are Hierarchical and Flat.
Hierarchical
Users navigate by making only one choice per screen until they reach their destination. To get to another destination, users must either retrace, or start from the beginning and make other choices.
We use NavigationView to implement hierarchical navigation
Clicking on the Navigation Link will push the child screen onto Screen 1
Flat
All the primary screens can be navigated from the main screen.
We use TabViews to implement flat navigation.
We’ve now incorporated hierarchical nav inside of flat nav with a TabView and given the tabs labels and icons