---
title: "init(configuration:group:)"
framework: widgetkit
role: symbol
role_heading: Initializer
path: "widgetkit/widgetrelevanceattribute/init(configuration:group:)-5yh17"
---

# init(configuration:group:)

Associates the widget kind with a group. When multiple widgets are in the same group, the system will only suggest one member of the group simultaneously. Widgets in the same group are interpreted to contain redundant information, and therefore should not be presented together.

## Declaration

```swift
init(configuration: Configuration, group: WidgetRelevanceGroup)
```

## Parameters

- `configuration`: The specific configuration
- `group`: The group to associate the widget with

## Discussion

Discussion Multiple groups can be associated with the same widget by providing multiple WidgetRelevanceAttribute instances with different groups.
