Initializer

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, UIPageViewController.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

Initializing a Page View Controller

struct UIPageViewController.OptionsKey

Keys for creating the page view controller.