<!--
{
  "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/CustomHoverEffect/body(content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17CustomHoverEffectP4body7content4BodyQzAA05EmptydE0V_tF"
  },
  "title" : "body(content:)"
}
-->

# body(content:)

Defines the effect produced by this effect.

```
func body(content: Self.Content) -> Self.Body
```

## Parameters

`content`

An empty effect you use to compose the custom
effect.

## Return Value

A custom effect.

## Discussion

You implement this method to describe a custom effect to apply to a
view. `content` is an empty effect you use to build your effect, which
will later be applied to a View, or combined with other
`CustomHoverEffect`s.

---

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)