<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Drawable/TrackingArea/addHoverEffect(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "s:So18cp_tracking_area_tV18CompositorServicesE14addHoverEffectyyAbCE0gH0VF"
  },
  "title" : "addHoverEffect(_:)"
}
-->

# addHoverEffect(_:)

Add an hover effect for this tracking area.
No hover effect will be rendered if this isn’t called.

```
func addHoverEffect(_ effect: LayerRenderer.Drawable.TrackingArea.HoverEffect)
```

---

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)