---
title: "init(_:)"
framework: widgetkit
role: symbol
role_heading: Initializer
path: "widgetkit/widgetrelevance/init(_:)"
---

# init(_:)

Creates a type collecting the relevances for a widget kind.

## Declaration

```swift
init(_ attributes: [WidgetRelevanceAttribute<Configuration>])
```

## Parameters

- `attributes`: A collection of WidgetRelevanceAttribute describing when this type of widget could be relevant.
