<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/CustomHoverEffect/highlight",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17CustomHoverEffectPA2A09HighlightdE0VRszrlE9highlightAEvpZ"
  },
  "title" : "highlight"
}
-->

# highlight

A hover effect that highlights views using a light source to indicate
position.

```
static var highlight: HighlightHoverEffect { get }
```

## Discussion

For pointer input this effect morphs the pointer into a platter behind
the view and shows a light source indicating position.

On tvOS it applies a projection effect accompanied with a specular
highlight on the view when contained within a focused view. It also
incorporates motion effects to produce a parallax effect by adjusting
the projection matrix and specular offset.

On visionOS this effect applies a glow effect based on where the user
is looking or touching the view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)