Skip to content

Page indicator

Shows the number of pages in a series and indicates which page is currently on display.

React

unsupported

Vue

unsupported

Elements

unsupported

Android

unsupported

iOS

released

Example

Usage

Design Guidelines

See Figma: Warp - Components / Page indicator

Questions?

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

Frameworks

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

nametypedefaultnotes

pageCount

Int

The total number of pages.

selectedPage

Binding Int

Binding to an integer representing the currently selected page.