---
title: duration
framework: corehaptics
role: symbol
role_heading: Instance Property
path: corehaptics/chhapticpattern/duration
---

# duration

The duration of the haptic pattern, in seconds.

## Declaration

```swift
var duration: TimeInterval { get }
```
