---
title: "body(content:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/customhovereffect/body(content:)"
---

# body(content:)

Defines the effect produced by this effect.

## Declaration

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

## Parameters

- `content`: An empty effect you use to compose the custom effect.

## Return Value

Return Value A custom effect.

## Discussion

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