uikituitabbarcontrollerios18ipados18

How to hide elevated tabbar in iPadOS 18?


In iOS 18, I've noticed that the tab bar is now positioned at the top of the screen on iPad devices. I'm trying to hide the tab bar programmatically, but setting TabBarController.tabBar.isHidden = true doesn't seem to have any effect. Has anyone else encountered this issue, or does anyone know an alternative method to successfully hide the tab bar in this version of iOS? Any guidance would be greatly appreciated.

I have tried to update the isTranslucent ,alpha , but they don't have effect on tabbar.


Solution

  • Unfortunately tabBarController.tabBar.isHidden not working in iOS18 ipad. We should use iOS18 api

    open func setTabBarHidden(_ hidden: Bool, animated: Bool)

    refer this apple forum post https://forums.developer.apple.com/forums/thread/762802