Post

Replies

Boosts

Views

Activity

Crashes occurring with the viewControllerBefore and viewControllerAfter methods of UIPageViewController.
feedbackassistant: https://feedbackassistant.apple.com/feedback/14724519 (FB14724519) We are developing an app using UIPageViewController. We have configured the UIPageViewController to provide 1 or 2 pages with a .pageCurl animation. We discovered a scenario where the viewControllerBefore and viewControllerAfter methods of the UIPageViewControllerDataSource are being called excessively. This happens when dragging on the last page, including dragging along the vertical axis (e.g., dragging from the top right to the bottom left). In this scenario, crashes occur intermittently, and we have observed similar issues in Apple Books as well. We would like to eliminate or minimize these crashes. Unfortunately, due to design constraints, we cannot remove the animation or adjust the page transition speed. Questions: Are there any updates or news regarding this issue, such as changes in the UIKit framework? What is the best way to prevent or minimize this crash? Crash Informations: The number of view controllers provided (0) doesn't match the number required (2) for the requested transition The number of view controllers provided (0) doesn't match the number required (1) for the requested transition Crash Videos: https://www.dropbox.com/scl/fo/bz7ykvm41du29u03ywbwo/AHO1y7CxURIi7s2QrERxPZk?rlkey=ugavf4tqo22q60g5bexe3kguz&e=1&st=xao8ypm6&dl=0
2
1
306
Aug ’24