Incorrect size provided to viewWillTransition(to size, with coordinator) when in full screen modal presentation on iPad

Originator:skiinfobc
Number:rdar://FB7575855 Date Originated:12/02/2020
Status:Open Resolved:
Product:UIKit Product Version:13.3
Classification:Incorrect behavior Reproducible:Yes
 
Basic Information
Please provide a descriptive title for your feedback:
Incorrect size provided to viewWillTransition(to size, with coordinator) when in full screen modal presentation on iPad
Which area are you seeing an issue with?
UIKit
What type of feedback are you reporting?
Incorrect/Unexpected Behavior
Description
Please describe the issue and what steps we can take to reproduce it:
When a full screen modal is presented from a form sheet modal, an incorrect size is provided to the full screen modal in `viewWillTransition(to size, with coordinator)` upon rotating an iPad device.

This can be easily reproduced by running the attached project which reproduces the issue, and rotating the app - it will hit an assertion which identifies the bug.

This was reproduced with Xcode 11.3.1 and iPadOS 13.3 simulator.

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!