Mac Catalyst UITabBarController with hidden tab bar wrapping view controllers inside the "More" navigation controller (not desired) when 7 or more tabs are embedded

I have a UITabBarController on Mac Catalyst. Since the UITabBar isn't really nice on Mac, I set the UITabBar to hidden.

Then I create a Mac styled NSToolbar with selectable items and manually change the UITabBarController selection with the NSToolbar selection (like the UITabBar would do normally on iOS).

This works fine until I select view controller at index 7 or greater. Then all of a sudden an iOS styled UINavigationBar appears. UITabBarController is wrapping view controllers at index 7 or greater in the "More Navigation Controller" which is not desired or needed (the window width is wide enough to avoid clipping, and the UITabBar is not even visible).

Hmm.. just for testing I showed the UITabBar and created a UITabBarItem for each view controller. UITabBarController just starts stacking view controllers in the "More" navigation controller when there are around 8 or more view controllers. It doesn't take into account the width of the UITabBarController; I can resize the window to giant size but the UITabBar just adds additional space between all the tab bar items and keeps the "More" item as the last tab bar item even though there is plenty of room to fit all tab bar items.

Workaround is to do this in all the view controllers automatically being wrapped in the more navigation controller:

-(void)willMoveToParentViewController:(UIViewController*)parent

{
    [super willMoveToParentViewController:parent];
      #if TARGET_OS_MACCATALYST
      if ([parent isKindOfClass:[UINavigationController class]])
     {
          UINavigationController *navigationController = (UINavigationController*)parent;
          [navigationController setNavigationBarHidden:YES];
     }
     #endif
}

At this point it seems simpler to just create your own container controller for Catalyst doesn't it?

Mac Catalyst UITabBarController with hidden tab bar wrapping view controllers inside the "More" navigation controller (not desired) when 7 or more tabs are embedded
 
 
Q