init(group:)
Associates the widget kind with a group. When multiple widgets are in the same group, the system only suggests 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
init(group: WidgetRelevanceGroup)Parameters
- group:
The group to associate the widget with
Discussion
Multiple groups can be associated with the same widget by providing multiple WidgetRelevanceAttribute instances with different groups.