UISplitViewController always horizontally compact when inside UITabBarController - iOS 14

174 Views Asked by At

I found a weird issue, when I have a UISplitViewContorller inside a UITabBarController, it always has compact horizontal size class. I can't find any documentation for why this is, nor a way to avoid it. I tried setOverrideTraitCollection(customTrait, forChild: childViewController) but that seems to work for every other controller except for UISplitViewContorller.

Is there any reason for this? Any way to get around it?

Thanks!

0

There are 0 best solutions below