iPadOS 18 App (on Apple Silicon) - Duplicate Tab Bar Appearing in Toolbar

With iPadOS 18, the UITabBar now defaults to the floating style. I successfully reverted the tab bar to its traditional style by overriding the UITabBarController's horizontalSizeClass property:

self.tabBarController?.traitOverrides.horizontalSizeClass = .unspecified

When I launch the app on my Mac using Apple Silicon, TWO tab bars appear:

  • One appears at the bottom of the screen, like a traditional tab bar.
  • The second tab bar is still embedded in the app toolbar in its floating style.

Is this a bug? How do you ensure that overriding the horizontalSizeClass will remove/hide the floating tab bar when running an app on Apple Silicon? TIA!

(Demonstrated on a test project)

iPadOS 18 App (on Apple Silicon) - Duplicate Tab Bar Appearing in Toolbar
 
 
Q