---
title: "init(color:strength:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/hovereffectcomponent/highlighthovereffectstyle/init(color:strength:)"
---

# init(color:strength:)

Creates a new highlight effect with a color and strength.

## Declaration

```swift
init(color: NSColor? = nil, strength: Float = 1.0)
```
