<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ContentHoverEffect",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18ContentHoverEffectV"
  },
  "title" : "ContentHoverEffect"
}
-->

# ContentHoverEffect

A `CustomHoverEffect` that applies effects to a view on hover using a
closure.

```
struct ContentHoverEffect<Effect> where Effect : HoverEffectContent
```

## Overview

Use the [`hoverEffect(in:isEnabled:body:)`](/documentation/SwiftUI/CustomHoverEffect/hoverEffect(in:isEnabled:body:)-swift.type.method)
method or the `CustomHoverEffect/hoverEffect(in:isEnabled:body:)` or
[`hoverEffect(in:isEnabled:body:)`](/documentation/SwiftUI/View/hoverEffect(in:isEnabled:body:)) modifiers to create content
effects.

## 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)