UIPageViewController wrong layout while swipe + orientation change

Originator:Mike.house.nsk
Number:rdar://45164974 Date Originated:October 11 2018, 12:42 AM
Status:opened Resolved:
Product:iOS Product Version:11+, 12+
Classification:Bug Reproducible:Sometimes
 
Area:
UIKit

Summary:
While swiping change orientation from landscape to portrait and sometimes you will see that the page controller shows half of previous view controller and half of next view controller.

Steps to Reproduce:
1. Setup page view controller with some view controllers
2. Put device to landscape orientation
3. Start a swipe gesture until more that half of view of next view controller appears then change orientation to portrait and during orientation changes release swipe gesture.

Expected Results:
Whole view of next view controller shown

Actual Results:
View of next view controller shown partly or page view controller shows wrong view controller (view controller from what the swipe gesture started)

Version/Build:
iOS 11, iOS 12

Configuration:
any iPhone

Note: when view controllers have more complex UI (auto layout) then this problem occurs more often and reproduces even easier.

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!