<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIHoverStyle/effect-4vdoj",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So12UIHoverStyleC5UIKitE6effectAC0A6Effect_pvp"
  },
  "title" : "effect"
}
-->

# effect

The effect to apply to the view with this style.

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

## Discussion

Use [`UIHoverAutomaticEffect`](/documentation/UIKit/UIHoverAutomaticEffect-swift.struct) to apply a system-default effect to the view.

---

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)