Contents

init(transitionStyle:navigationOrientation:options:)

Initializes a newly created page view controller.

Declaration

init(transitionStyle style: UIPageViewController.TransitionStyle, navigationOrientation: UIPageViewController.NavigationOrientation, options: [UIPageViewController.OptionsKey : Any]? = nil)

Parameters

  • style:

    The style for transitions between pages.

  • navigationOrientation:

    The orientation of the page-by-page navigation.

  • options:

    A dictionary of options. For keys, see Optionskey.

Return Value

The initialized page view controller.

Discussion

After initialization, use the setViewControllers(_:direction:animated:completion:) method to set the initial view controllers.

See Also

Creating a page view controller