---
url: /docs/components/page-indicator/frameworks/ios.md
---
# Page indicator - iOS

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

## iOS

### Syntax

```swift example
Warp.PageIndicator(
    pageCount: Int,
    selectedPage: Binding<Int>
)
```

```swift example
Warp.PageIndicator(pageCount: 5, selectedPage: $currentPage)
```

### Legacy support

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

```swift example
Warp.PageIndicator(pageCount: 5, selectedPage: $currentPage).uiView
```

### Parameters

#### 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. |
