Temporarily hide UITabBarController on visionOS

We have an app with a UITabBarController. On visionOS it is automatically shown as an ornament (as expected).

However, we would like to temporarily hide it in some situations.

Is it possible to hide/show the ornament representation of the UITabBarController's tab bar?

Answered by Vision Pro Engineer in 792171022

On visionOS 2.0 you can use the new setTabBarHidden(_:animated:) method.

Accepted Answer

On visionOS 2.0 you can use the new setTabBarHidden(_:animated:) method.

Thanks for your response! I tried it on on the visionOS2.0 beta but it didn't work. The same code works fine on iOS18.

I created a feedback with a video and sample project: FB14008833

Thanks!

Temporarily hide UITabBarController on visionOS
 
 
Q