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

# init(isExpanded:content:header:)

Creates a section with the provided section content.

## Declaration

```swift
init(isExpanded: Binding<Bool>, @ContentBuilder content: () -> Content, @ContentBuilder header: () -> Parent)
```

## Parameters

- `isExpanded`: A binding to a Boolean value that determines the section’s expansion state (expanded or collapsed).
- `content`: The section’s content.

## See Also

### Controlling collapsibility

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