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

# setDuration(_:forPage:)

Sets a custom duration for the specified page. Set 0.0 to remove the custom duration for the specified page.

## Declaration

```swift
func setDuration(_ duration: TimeInterval, forPage page: Int)
```
