UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Keyboard with Bottom Tab Bar Menu

Forums > SwiftUI


I am relatively new to programming in SwiftUI and making User Interfaces. I was able to create this UI through some youtube videos and blog posts. However, I am still having a hard time in getting the tab bar menu at the bottom to "disappear" in a sense when I click on the UITextField. How exactly would I implement this "disappearing" feature inside the current UI via code? Or do I need to design another more efficient menu for my use case? If I need to/would be better if I designed a new UI, can you provide a blog post and/or youtube video that could help in that regard? My post with code is available at this Stack Overflow post (https://stackoverflow.com/q/65913575/12696801)

Was having a hard time writing my code in the markdown tool in the editor, thus stack overflow was the go to. Any help on this would be really appreciated it!


You can actually create your own custom TabBar... there are some tutorials online for that. They should pop up as the first search results.

By doing that, you can then show them conditionally. Such as, if the keyboard is showing hide the TabBar. For that you will need to listen to a notification for the keyboard. (another search will help there).

Do note however, that this will probably get easier soon. SwiftUI is still getting implementations for things that we had in UIKit, so while currently it is not that straightforward, it should become so soon.


BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.