---
title: relevance()
framework: widgetkit
role: symbol
role_heading: Instance Method
path: widgetkit/intenttimelineprovider/relevance()
---

# relevance()

Provides an object containing attributes that describe when a specific widget is relevant.

## Declaration

```swift
func relevance() async -> WidgetRelevance<Self.Intent>
```

## Return Value

Return Value The object that contains attributes that describe when a specific widget is relevant.

## Discussion

Discussion The system can use the relevance to show this widget in the Smart Stack when the provided relevance matches a person’s context. For example, if you indicate relevance at a specific location, the system could show the widget when a person is at or close to the location. By default, this method returns no relevances. Implement this requirement to tell the system that your widget is relevant. note: Smart Stacks are available in iOS, iPadOS, and watchOS. However, functionality provided by RelevanceKit API is only available in watchOS. Calling its API on other platforms doesn’t have any effect. For more information, refer to Increasing the visibility of widgets in Smart Stacks.
