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

# highlight(_:)

Returns a hover effect style that uniformly highlights the entity and also applies a feathered spotlight effect.

## Declaration

```swift
static func highlight(_ style: HoverEffectComponent.HighlightHoverEffectStyle) -> HoverEffectComponent.HoverEffect
```

## Parameters

- `style`: A doc://com.apple.RealityKit/documentation/RealityKit/HoverEffectComponent/HighlightHoverEffectStyle instance that allows you to customize various aspects of this hover effect.
