---
title: duration
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsanimationcontext/duration
---

# duration

The duration used by animations created as a result of setting new values for an animatable property.

## Declaration

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

## Discussion

Discussion Any animations that occur as a result of setting the values of animatable properties in the current context will run for this duration.

## See Also

### Modifying the Animation Duration

- [timingFunction](appkit/nsanimationcontext/timingfunction.md)
