On iPadOS 14, UISplitViewController embedded in UITabBarController is always collapsed
UIKit
Incorrect/Unexpected Behavior
On iPadOS 14 (beta 4), UISplitViewController embedded in UITabBarController is always collapsed, preventing to display 2 or 3 columns side by side.
- Create a
UISplitViewControllerwith adoubleColumnortripleColumnstyle. - Set its
preferredDisplayModeto.oneBesideSecondary(or.twoBesideSecondaryfor thetripleColumnstyle). - Embed the split view controller in a
UITabBarController. - Launch the app on iPad.
- Expected behavior: both the primary and secondary view controllers should be displayed side by side (expanded interface).
- Actual behavior: only the secondary view controller is displayed in the
UITabBarController(collapsed interface).
- Print the split view controller
horizontalSizeClass. It is.compact. It should be.regular. That is why the split view controller is collapsed instead of expanded.
This is a regression. Embedding a UISplitViewController in a UITabBarController works well on iOS 13 (and before).
Actual Behavior:
Expected Behavior:

