---
title: "hoverEffectGroup(_:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/customhovereffect/hovereffectgroup(_:)-swift.type.method"
---

# hoverEffectGroup(_:)

Creates an effect that activates a named group of effects.

## Declaration

```swift
static func hoverEffectGroup(_ group: HoverEffectGroup?) -> GroupHoverEffect
```

## Parameters

- `group`: The HoverEffectGroup to activate when this view is hovered. If nil, this modifier has no effect.

## Return Value

Return Value An effect that activates the given hover group.
