Instance Method

pageViewController(_:viewControllerBefore:)

Returns the view controller before the given view controller.

Required.

Declaration

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

Parameters

pageViewController

The page view controller

viewController

The view controller that the user navigated away from.

Return Value

The view controller before the given view controller, or nil to indicate that there is no previous view controller.

See Also

Providing View Controllers