---
title: duration
framework: widgetkit
role: symbol
role_heading: Instance Property
path: widgetkit/timelineentryrelevance/duration
---

# duration

The number of seconds, following an entry’s date, that WidgetKit considers the widget for rotation to the top of the stack.

## Declaration

```swift
var duration: TimeInterval
```

## Mentioned in

Increasing the visibility of widgets in Smart Stacks

## See Also

### Configuring Relevance Properties

- [score](widgetkit/timelineentryrelevance/score.md)
