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

# makeBody(configuration:)

Returns the appearance and interaction content for a DatePicker.

## Declaration

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

## Parameters

- `configuration`: The properties of the date picker.

## Discussion

Discussion The system calls this method for each DatePicker instance in a view hierarchy where this style is the current date picker style.

## See Also

### Creating custom date picker styles

- [DatePickerStyleConfiguration](swiftui/datepickerstyleconfiguration.md)
- [DatePickerStyle.Configuration](swiftui/datepickerstyle/configuration.md)
- [Body](swiftui/datepickerstyle/body.md)
