---
title: "spotlight(_:groupID:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/hovereffectcomponent/hovereffect-swift.struct/spotlight(_:groupid:)"
---

# spotlight(_:groupID:)

Returns a spotlight hover effect that is assigned to the group.

## Declaration

```swift
static func spotlight(_ style: HoverEffectComponent.SpotlightHoverEffectStyle, groupID: HoverEffectComponent.GroupID) -> HoverEffectComponent.HoverEffect
```
