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

# init(content:header:)

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

## Declaration

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

## Parameters

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

## See Also

### Adding headers and footers

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