Navigation with TabView
Most programs have a TabView. The main problem with it is that if you have a navigationTitle, then when you switch tabs, they do not change. This can be fixed by adding a NavigationView for each tab. But in this case, the TabView will always be visible during navigation. If you sometimes need to hide the TabView, I have a solution))
- Create NavigationView for all your app
- Create TabView and hide nav bar(.navigationBarHidden(true))
- In Tab screen create ZStack with NavigationView and NavigationLink.