UIPageControl
A control that displays a horizontal series of dots, each of which corresponds to a page in the app’s document or other data-model entity.
Declaration
@MainActor class UIPageControlMentioned in
Overview
For an example of a page control, see the Weather app when it’s configured to display information for more than one location.
When a user taps a page control to move to the next or previous page, the control sends the valueChanged event for handling by the delegate. The delegate can then evaluate the currentPage property to determine the page to display. The page control advances only one page in either direction. The currently viewed page is indicated by a white dot. Depending on the device, a certain number of dots are displayed on the screen before they’re clipped.
Topics
Managing pages
Coloring the page indicator
Managing the indicator images
preferredIndicatorImageindicatorImage(forPage:)setIndicatorImage(_:forPage:)preferredCurrentPageIndicatorImagecurrentPageIndicatorImage(forPage:)setCurrentPageIndicatorImage(_:forPage:)