---
title: TimelineEntryRelevance
framework: widgetkit
role: symbol
role_heading: Structure
path: widgetkit/timelineentryrelevance
---

# TimelineEntryRelevance

An object that describes the relative importance of a timeline entry compared to other entries in the current and past timelines.

## Declaration

```swift
struct TimelineEntryRelevance
```

## Mentioned in

Increasing the visibility of widgets in Smart Stacks

## Overview

Overview When users put widgets into a Smart Stack, WidgetKit uses the relevance property of the entries your timeline provider generates to determine how relevant they are to the user. For each timeline entry that your provider creates, you may assign relevance that contains a score and a duration. The score is a value you choose that indicates the relevance of the widget, relative to entries across timelines that the provider creates. When the date of an entry arrives, and for the duration you specify, WidgetKit may rotate your widget to the top of the stack so it becomes visible. A timeline entry’s assigned relevance isn’t the only factor that determines whether WidgetKit rotates your widget to the top of the Smart Stack. For more information, see Increasing the visibility of widgets in Smart Stacks.

## Topics

### Creating a Relevance Object

- [init(score:duration:)](widgetkit/timelineentryrelevance/init(score:duration:).md)

### Configuring Relevance Properties

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

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Smart Stacks

- [Increasing the visibility of widgets in Smart Stacks](widgetkit/widget-suggestions-in-smart-stacks.md)
- [RelevanceConfiguration](widgetkit/relevanceconfiguration.md)
- [RelevanceEntriesProvider](widgetkit/relevanceentriesprovider.md)
- [RelevanceEntry](widgetkit/relevanceentry.md)
- [WidgetRelevance](widgetkit/widgetrelevance.md)
- [WidgetRelevanceAttribute](widgetkit/widgetrelevanceattribute.md)
- [WidgetRelevanceGroup](widgetkit/widgetrelevancegroup.md)
- [AppIntentRecommendation](widgetkit/appintentrecommendation.md)
- [IntentConfiguration](widgetkit/intentconfiguration.md)
- [IntentRecommendation](widgetkit/intentrecommendation.md)
