---
title: "makeBody(configuration:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/menustyle/makebody(configuration:)"
---

# makeBody(configuration:)

Creates a view that represents the body of a menu.

## Declaration

```swift
@ContentBuilder @MainActor @preconcurrency func makeBody(configuration: Self.Configuration) -> Self.Body
```

## Parameters

- `configuration`: The properties of the menu.

## Discussion

Discussion The system calls this method for each Menu instance in a view hierarchy where this style is the current menu style.

## See Also

### Creating custom menu styles

- [MenuStyle.Configuration](swiftui/menustyle/configuration.md)
- [Body](swiftui/menustyle/body.md)
