<!--
{
  "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/AutomaticHoverEffect",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20AutomaticHoverEffectV"
  },
  "title" : "AutomaticHoverEffect"
}
-->

# AutomaticHoverEffect

The default hover effect based on the surrounding context.

```
struct AutomaticHoverEffect
```

## Overview

The automatic effect will resolve to any [`defaultHoverEffect(_:)`](/documentation/SwiftUI/View/defaultHoverEffect(_:))
applied to the current View hierarchy, or a system-defined effect if
no default effect has been defined.

You can also use [`automatic`](/documentation/SwiftUI/CustomHoverEffect/automatic) to construct this hover
effect.

## Topics

### Initializers

[`init()`](/documentation/SwiftUI/AutomaticHoverEffect/init())

Creates an automatic hover effect.

## Relationships

### Conforms To

[`CustomHoverEffect`](/documentation/SwiftUI/CustomHoverEffect)

---

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)