How to hide elevated tabbar in iPadOS 18?

In iOS 18, the tab bar has been moved to the top on iPad. How can I hide this tab bar? Using TabBarController.tabBar.isHidden = true isn't working.

You should use new setTabBarHidden API:

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

https://developer.apple.com/documentation/uikit/uitabbarcontroller/4434589-settabbarhidden

there are some discussions about how to rollback to the old tab bar version here... hiding the tab bar would not make it dissapear from the view...? https://forums.developer.apple.com/forums/thread/756652?answerId=790193022&page=1#801507022

How to hide elevated tabbar in iPadOS 18?
 
 
Q