Open KYHyeon opened 3 years ago
I can reproduce this in our app, where we have 7 view controllers and isInfiniteScrollEnabled
is true
/false
(doesn't matter) - when you go quickly between view controllers back and forth one of the views would disappear eventually. And then, if you rotate the device app would crash with console output like this
*** Assertion failure in -[Pageboy.PatchedPageViewController _flushViewController:animated:], UIPageViewController.m:2110
2022-05-26 13:54:31.247654-0700 MotorTrend[3956:523518] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Don't know about flushed view <UIView: 0x121f6eac0; frame = (0 0; 1194 503.5); alpha = 0; autoresize = W+H; layer = <CALayer: 0x2831f92c0>>'
When isInfiniteScrollEnabled is true and the scroll direction changes on the last page, the view controller disappears intermittently. This is easy to reproduce if you have two viewcontrollers.
Here is my code