NEW: Learn to build amazing SwiftUI apps for macOS with my new book! >>

Keyboard with Bottom Tab Bar Menu

Forums > SwiftUI

Hello,

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!

1      

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.

1      

Hacking with Swift is sponsored by RevenueCat

SPONSORED Spend less time managing in-app purchase infrastructure so you can focus on building your app. RevenueCat gives everything you need to easily implement, manage, and analyze in-app purchases and subscriptions without managing servers or writing backend code.

Get Started

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.