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

# hoverEffect

The kind for hover effects.

```
static let hoverEffect: ContentShapeKinds
```

## Discussion

When using this kind, only the preview shape is affected. To control
the shape used to hit-test and start the effect, use the `interaction`
kind.

On tvOS, this is used to define the shape of any hover effect applied to
focusable and hoverable controls, for example button border or clipping
shapes.

This kind does not affect the `onHover` modifier.

---

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)