Instance Method

pageViewController(_:viewControllerAfter:)

Returns the view controller after the given view controller.

Required.

Declaration

func pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController?

Parameters

pageViewController

The page view controller

viewController

The view controller that the user navigated away from.

Return Value

The view controller after the given view controller, or nil to indicate that there is no next view controller.

See Also

Providing View Controllers