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

# init(_:content:)

Creates a section with the provided section content.

## Declaration

```swift
init(_ titleKey: LocalizedStringKey, @ContentBuilder content: () -> Content)
```

## Parameters

- `titleKey`: The key for the section’s localized title, which describes the contents of the section.
- `content`: The section’s content.

## See Also

### Creating a section

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