Skip to content

Page indicator - iOS ​

A page indicator shows the total amount of pages (or images) and the current page using dots.

AndroidreleasedElementsreleasediOSreleasedReact 19released

iOS ​

Syntax ​

swift
Warp.PageIndicator(
    pageCount: Int,
    selectedPage: Binding<Int> = .constant(0)
)
swift
Warp.PageIndicator(pageCount: 5)

Legacy support ​

By default all Warp components return a SwiftUI View but there is always a UIKit UIView available to use also.

swift
Warp.PageIndicator(pageCount: 5).uiView

Parameters ​

Required props ​

NameTypeDefaultDescription
pageCountIntThe total number of pages.
selectedPageBinding IntBinding to an integer representing the currently selected page.

Questions? ​

Feel free to ask any questions on usage in the Warp DS Slack channel: #warp-design-system