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

# makeBody(configuration:)

Creates a view that represents the body of a button.

## Declaration

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

## Parameters

- `configuration`: The properties of the button.

## Discussion

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

## See Also

### Creating custom button styles

- [PrimitiveButtonStyle.Configuration](swiftui/primitivebuttonstyle/configuration.md)
- [Body](swiftui/primitivebuttonstyle/body.md)
