---
title: hoverEffect
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/contentshapekinds/hovereffect
---

# hoverEffect

The kind for hover effects.

## Declaration

```swift
static let hoverEffect: ContentShapeKinds
```

## Discussion

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.

## See Also

### Getting shape kinds

- [interaction](swiftui/contentshapekinds/interaction.md)
- [dragPreview](swiftui/contentshapekinds/dragpreview.md)
- [contextMenuPreview](swiftui/contentshapekinds/contextmenupreview.md)
- [focusEffect](swiftui/contentshapekinds/focuseffect.md)
- [accessibility](swiftui/contentshapekinds/accessibility.md)
