---
title: "duration(forPage:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipagecontroltimerprogress/duration(forpage:)"
---

# duration(forPage:)

Returns the duration for the specified page, and preferredDuration when there is no custom duration set for the specified page.

## Declaration

```swift
func duration(forPage page: Int) -> TimeInterval
```
