Contents

pageViewController(_:spineLocationFor:)

Returns the spine location for the given orientation.

Declaration

optional func pageViewController(_ pageViewController: UIPageViewController, spineLocationFor orientation: UIInterfaceOrientation) -> UIPageViewController.SpineLocation

Parameters

  • pageViewController:

    The page view controller

  • orientation:

    The new orientation.

Return Value

The spine location.

Discussion

Use this method to change the spine location when the device orientation changes, as well as setting new view controllers and changing the double-sided state.

This method is called only if the transition style is UIPageViewController.TransitionStyle.pageCurl.

See Also

Responding to Page View Controller Events