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

# init(_:content:)

Creates a section with the provided content.

## Declaration

```swift
init(_ titleKey: LocalizedStringKey, @TabContentBuilder<SelectionValue> content: () -> Content) where Header == Text, Footer == EmptyView
```

## Parameters

- `titleKey`: The localized string key label for the section’s header.
- `content`: The section’s content.

## See Also

### Creating a tab section

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