Instance Method

presentationCount(for:)

Returns the number of items to be reflected in the page indicator.

Declaration

optional func presentationCount(for pageViewController: UIPageViewController) -> Int

Parameters

pageViewController

The page view controller.

Return Value

The number of items to be reflected in the page indicator.

See Also

Supporting a Page Indicator

func presentationIndex(for: UIPageViewController) -> Int

Returns the index of the selected item to be reflected in the page indicator.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software