---
title: effect
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uihoverstyle/effect-4vdoj
---

# effect

The effect to apply to the view with this style.

## Declaration

```swift
@MainActor @preconcurrency var effect: any UIHoverEffect { get set }
```

## Discussion

Discussion Use UIHoverAutomaticEffect to apply a system-default effect to the view.

## See Also

### Specifying a hover effect

- [UIHoverAutomaticEffect](uikit/uihoverautomaticeffect-swift.struct.md)
- [UIHoverHighlightEffect](uikit/uihoverhighlighteffect-swift.struct.md)
- [UIHoverLiftEffect](uikit/uihoverlifteffect-swift.struct.md)
- [UIHoverEffect](uikit/uihovereffect-40091.md)
