Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hide TabView after clicking on a NavigationLink in SwiftUI

Tags:

ios

swift

swiftui

when I have a TabView{} and the first Tab has a NavigationView, when I click on a Row, I want that TabView{} to disappear. How do I do that?

Same Issue here: How to hide the TabBar when navigate with NavigationLink in SwiftUI?

But unfortunately no solution.

like image 862
seref Avatar asked Sep 23 '19 17:09

seref


1 Answers

There is no way to do that currently. For example, NavigationView responds to the .navigationBarHidden(_:) method on its descendants, but there is not an equivalent for TabView.

If this is something you'd like to see, let Apple know.

like image 120
John M. Avatar answered Sep 27 '22 22:09

John M.