Contents

TimelineEntryRelevance

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

Declaration

struct TimelineEntryRelevance

Mentioned in

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

Configuring Relevance Properties

See Also

Smart Stacks