---
title: automatic
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/customhovereffect/automatic
---

# automatic

The default hover effect based on the surrounding context.

## Declaration

```swift
nonisolated static var automatic: AutomaticHoverEffect { get }
```

## Discussion

Discussion 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.

## See Also

### Getting built-in hover effects

- [empty](swiftui/customhovereffect/empty.md)
- [highlight](swiftui/customhovereffect/highlight.md)
- [lift](swiftui/customhovereffect/lift.md)
