Vertically centered views in LaunchScreen are squashed in iOS 11.2

Originator:shadone
Number:rdar://36542165 Date Originated:16/01/2018
Status: Resolved:
Product:iOS + SDK Product Version:11.2
Classification: Reproducible:always
 
Summary:
LaunchScreen is clipped when "double height" status bar is on

Steps to Reproduce:

Create new "Single view iOS app", open LaunchScreen.storyboard, put UIView, set background color to pink and add constraints: "height: 50pt", "width: 50pt", "centre horizontally in container", "centre vertically in container". Run the app in Simulator with double height status bar (menu item "Hardware"->"Toggle In-call Status Bar").

See sample app: https://github.com/shadone/ios11.2-launchscreen-squashed
See video showing the issue in iOS 11.2: https://youtu.be/PzKU-JBjySA
Works fine in iOS 10.3.1: https://youtu.be/kKZm1SlLxv0

Expected Results:

You should see a pink square in the middle of the screen
Actual Results:

The pink view is rectangular, squashed vertically.
Version/Build:
iOS 11.2; Same in iOS 11.1. This is a regression from iOS 10.3.1. Happens both in Simulator and on the device.

Configuration:

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!