navigationController.toolBar combined with UITabbar

When I set self.navigationController.toolbarHidden = NO in iOS 13 beta 3 in a viewcontroller that has a UITabbar at the bottom, the toolbar gets shown but at the wrong position. The toolbar's height seems to be that of the UITabbar plus the height of the Toolbar but instead of starting at the very bottom of the screen behind the tabbar (which would then result in a correctly looking toolbar), it starts right on top of the UITabbar and therefore is way too high.


Is this a known issue in the current beta?

Replies

I've created a very simple example project to demonstrate the issue.


https://imgur.com/a/v0z7zRY


Green: UIViewController (inside UINavigationController)

Blue: UITabbar

Orange: UIToolbar


It seems to be working fine in iOS 12 and below.


https://imgur.com/a/qGPKTLq

This issue is still persent in iOS 13 Beta 5.

Same here, did you file a Radar?

I did not file a radar. The problem is still present in Beta 7.

I'm encountering the same issue with my app. Filed FB6973912 earlier this month and attached a minimum sample project / screenshots. The same regression had occurred on prior iOS releases*, and (luckily) got fixed right before shipping. Something tells me this configuration isn't common enough to raise warning bells with Apple's QA team, but I'm crossing my fingers they'll fix this again before release.


* From iOS 11:

https://forums.developer.apple.com/thread/86758

https://stackoverflow.com/questions/46205703/ios-11-iphone-x-uinavigationbars-toolbar-spacing-incorrect-when-embedded-in

Thanks for the info. I've now also filed a feedback FB7082096 and I've referenced yours in it.

It's fixed in iOS 13.1 Beta 2.

Is there any way to test iOS 13.1 beta2 or 3 *in a simulator* ? seems the only option I have it to install it on my only device... that I want to keep on a stable iOS version (iOS 12.4.1). Thanks.

I don't think so. I currently live with it being wrong in the simulator but correct when running on the real device.