Standalone UITabBar broken on iPhone X

Originator:kamil.borzym
Number:rdar://36192254 Date Originated:December 22 2017, 8:55 AM
Status:Open Resolved:
Product:UIKit Product Version:11.2
Classification:Bug Reproducible:Always
 
Area:
UIKit

Summary:
Using `UITabBar` without `UITabBarController` results in broken layout on iPhone X.

Steps to Reproduce:
Add `UITabBar` to the rootViewController's view. Create left-to-left , right-to-right and bottom-to-bottom constraints (yes bottom-to-bottom, `UITabBarController` places `UITabBar` at the very bottom of its root view). You can also just use this sample project: https://github.com/kam800/UITabBarIPhoneXProblem. Run the app using iPhone X.

Expected Results:
`UITabBar` should be 83pt in height, its buttons should be 48pt in height.

Actual Results:
`UITabBar` is 49pt in height, its buttons are 14pt in height.

Version/Build:
11.2

Configuration:
iPhone X

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!