---
title: "invalidateRelevance(ofKind:)"
framework: widgetkit
role: symbol
role_heading: Instance Method
path: "widgetkit/widgetcenter/invalidaterelevance(ofkind:)"
---

# invalidateRelevance(ofKind:)

Mark the relevance for a kind as invalid.

## Declaration

```swift
func invalidateRelevance(ofKind kind: String)
```

## Parameters

- `kind`: A string that identifies the widget and matches the value you used when you created the widget’s configuration.

## Discussion

Discussion Call this function when the relevance returned for a widget has changed and needs to be reloaded. Marking relevance as invalid causes the system to call, at a later time, the relevance function on the timeline provider that matches the specified kind.
