UITabBarController with tabSidebar mode

I’m using a UITabBarController with fixed UITabs and sidebarOnly UITabs, on an iPhone Duo I’m seeing the sidebarOnly tabs show up regardless of sidebar.preferredPlacement. Is this expected? I’m trying to achieve the same behavior as the Health app as shown in the developer videos. I have a feeling that I might need to check for the horizontal size class, but I feel like the API should be doing the work of hiding the sidebarOnly tabs, no?

Also, when setting tabBarController.sidebar.preferredPlacement = .sidebar and collapse it I don’t see the sidebar when I collapse on the inner display using Xcode 27.1. I think this is a bug?

Hello! This is answered in the Summary of the iPhone Duo Group Lab https://developer.apple.com/forums/thread/847644?answerId=906290022#906290022

How does tabSidebar (UIKit) or sidebarAdaptable (SwiftUI) behave on iPhone Duo?

When using sidebarAdaptable and SidebarAdaptableTabViewStyle in SwiftUI, or UITabBarController.Mode.tabSidebar in UIKit, the system presents the platform's regular tab bar or an adaptable sidebar depending on the active context, orientation, and pose. In general, iOS displays a bottom tab bar rather than adapting into a sidebar the way iPadOS does. You can opt into a sidebar on the inner display of iPhone Duo by setting the default tab bar placement to sidebar in SwiftUI, or the preferred placement to sidebar in UIKit.

If you are seeing a different behavior, could you please file a feedback report with a sample project that reproduces the issue, and share the FB number?

I am seeing a different behavior, I have filed a feedback report: FB24909098

UITabBarController with tabSidebar mode
 
 
Q