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

# init(content:header:)

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

## Declaration

```swift
init(@TabContentBuilder<SelectionValue> content: () -> Content, @ContentBuilder header: () -> Header) where Header : View, Footer == EmptyView
```

## Parameters

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

## See Also

### Creating a tab section

- [init(content:)](swiftui/tabsection/init(content:).md)
- [init(_:content:)](swiftui/tabsection/init(_:content:).md)
