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

# relevance()

Provides a collection of conditions under which a specific widget could be relevant.

## Declaration

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

## Mentioned in

Increasing the visibility of widgets in Smart Stacks

## Discussion

Discussion The system can use the relevance to show this widget when the conditions for the relevance match the current state.

## See Also

### Generating relevance entries

- [entry(configuration:context:)](widgetkit/relevanceentriesprovider/entry(configuration:context:).md)
- [placeholder(context:)](widgetkit/relevanceentriesprovider/placeholder(context:).md)
- [RelevanceEntriesProviderContext](widgetkit/relevanceentriesprovidercontext.md)
