Page indicator - Frameworks
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).uiViewParameters
Required props
| Name | Type | Default | Description |
|---|---|---|---|
| pageCount | Int | The total number of pages. | |
| selectedPage | Binding Int | Binding 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