TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>

Jumping hidden tab bar

Forums > SwiftUI

@mrgg  

Hi Guys,

I want hide my tab bar in second screen and i use:

            .toolbar(.hidden, for: .tabBar)

And i get this result (tab bar showing when appear): https://youtube.com/shorts/VzJrbvKAx64

When i back to main view, tab bar show up and making this annoying "jump".

How I can do like in other apps: https://youtube.com/shorts/YmJuC2hwhp4

When i go to atother screen (without tab bar) view just cover tab bar...

Simple presentation:

I have no idea, where is the problem... its another approach?

i have TabView, in TabView i have NavigationStack in this NavigationStack i have another view, when i want hidde tab bar

3      

Hacking with Swift is sponsored by Blaze.

SPONSORED Still waiting on your CI build? Speed it up ~3x with Blaze - change one line, pay less, keep your existing GitHub workflows. First 25 HWS readers to use code HACKING at checkout get 50% off the first year. Try it now for free!

Reserve your spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.