---
title: "init(_:behavior:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/hovereffectgroup/init(_:behavior:)"
---

# init(_:behavior:)

Creates a new HoverEffectGroup from a Namespace.ID.

## Declaration

```swift
init(_ namespace: Namespace.ID, behavior: HoverEffectGroup.Behavior = .activatesGroup)
```

## Parameters

- `namespace`: The namespace that identifies the group.
- `behavior`: How the effect will behave relative to other effects in the group.

## Return Value

Return Value A new HoverEffectGroup
