Instance Method

pageViewController(_:willTransitionTo:)

Called before a gesture-driven transition begins.

Declaration

optional func pageViewController(_ pageViewController: UIPageViewController, willTransitionTo pendingViewControllers: [UIViewController])

Parameters

pageViewController

The page view controller.

pendingViewControllers

The view controllers that are being transitioned to.

Discussion

If the user aborts the navigation gesture, the transition doesn’t complete and the view controllers stay the same.