<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/WidgetRelevance",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit0A9RelevanceV"
  },
  "title" : "WidgetRelevance"
}
-->

# WidgetRelevance

A type collecting the relevances for a widget kind.

```
struct WidgetRelevance<Configuration>
```

## Overview

Return this type from the `relevance()` requirement of your [`TimelineProvider`](/documentation/WidgetKit/TimelineProvider),
[`AppIntentTimelineProvider`](/documentation/WidgetKit/AppIntentTimelineProvider), or [`IntentTimelineProvider`](/documentation/WidgetKit/IntentTimelineProvider) to inform the
system of when a widget might be relevant and in which configuration.

Make sure to return the relevances ordered by priority because the system might
decide to utilize only a subset of the provided relevances.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)