---
title: "init(content:header:footer:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/section/init(content:header:footer:)"
---

# init(content:header:footer:)

Creates a section with a header, footer, and the provided section content.

## Declaration

```swift
init(@ContentBuilder content: () -> Content, @ContentBuilder header: () -> Parent, @ContentBuilder footer: () -> Footer)
```

## Parameters

- `content`: The section’s content.
- `header`: A view to use as the section’s header.
- `footer`: A view to use as the section’s footer.

## See Also

### Adding headers and footers

- [init(content:header:)](swiftui/section/init(content:header:).md)
- [init(content:footer:)](swiftui/section/init(content:footer:).md)
