---
title: AutomaticHoverEffect
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/automatichovereffect
---

# AutomaticHoverEffect

The default hover effect based on the surrounding context.

## Declaration

```swift
struct AutomaticHoverEffect
```

## Overview

Overview The automatic effect will resolve to any defaultHoverEffect(_:) applied to the current View hierarchy, or a system-defined effect if no default effect has been defined. You can also use automatic to construct this hover effect.

## Topics

### Initializers

- [init()](swiftui/automatichovereffect/init().md)

## Relationships

### Conforms To

- [CustomHoverEffect](swiftui/customhovereffect.md)

## See Also

### Supporting types

- [EmptyHoverEffect](swiftui/emptyhovereffect.md)
- [HighlightHoverEffect](swiftui/highlighthovereffect.md)
- [LiftHoverEffect](swiftui/lifthovereffect.md)
