Skip to content

Tab level navigation stacks and still push navigation on top of TabBar #52

Closed Answered by davdroman
magicalstoryboard asked this question in Q&A
Discussion options

You must be logged in to vote

This is a very good question, albeit somewhat unrelated to this library.

I've been chasing this exact behavior myself for some time now. Just like you, I thought the newly introduced .toolbar(.hidden, .tabBar) API would do the trick, however as you rightly mention the effect is quite glitchy.

One thing I've tried is using SwiftUI-Introspect to set the destination view controller's hidesBottomBarWhenPushed to true, however that doesn't seem to have any effect, which is really a shame.

As far as I know, the only thing we can do is file a radar for Apple to fix the .toolbar(.hidden, .tabBar) modifier to act more like hidesBottomBarWhenPushed.

One final thought would be to roll out your own c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davdroman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants