EKEventEditViewController opens with incorrect size when iPad in Regular mode

Originator:hotngui
Number:rdar://43291579 Date Originated:8/14/2018
Status:Open Resolved:
Product:iOS Product Version:11.4
Classification:UI/Usability Reproducible:Yes
 
Area:
EventKit

Summary: 
When I setup an EKEventEditViewController with a modalPresentationStyle of formSheet it opens up with the wrong height. Rotating the device fixes the problem, but every initial open is wrong.

Steps to Reproduce:
1. Uncompress the attached Zip file that contains the project
2. Open and Build the test project on an iPad or Simulator
3. Tap the button
4. Observe the size of the editor VC is wrong (the height)
5. Rotate the device, observe the size get corrected
6. Rotate back to original orientation, observe the size is still correct

Expected Results:
The editor VC should open to the correct size, and not need to change sizes .

Actual Results:
The editor VC opens too short!

Version/Build:
iOS 11.4, Xcode 9.4.1

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!