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

# shader(_:groupID:)

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

## Declaration

```swift
static func shader(_ inputs: HoverEffectComponent.ShaderHoverEffectInputs, groupID: HoverEffectComponent.GroupID) -> HoverEffectComponent.HoverEffect
```
