GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

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!

3      

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.

3      

Hacking with Swift is sponsored by try! Swift Tokyo.

SPONSORED Ready to dive into the world of Swift? try! Swift Tokyo is the premier iOS developer conference will be happened in April 9th-11th, where you can learn from industry experts, connect with fellow developers, and explore the latest in Swift and iOS development. Don’t miss out on this opportunity to level up your skills and be part of the Swift community!

Get your ticket here

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.