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.
Now NavigationLink on main level of your NavigationView Soo, just toggle isActive if your want navigate outside of your TabView