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

# init(isExpanded:content:label:)

Creates a disclosure group with the given label and content views, and a binding to the expansion state (expanded or collapsed).

## Declaration

```swift
nonisolated init(isExpanded: Binding<Bool>, @ContentBuilder content: @escaping () -> Content, @ContentBuilder label: () -> Label)
```

## Parameters

- `isExpanded`: A binding to a Boolean value that determines the group’s expansion state (expanded or collapsed).
- `content`: The content shown when the disclosure group expands.
- `label`: A view that describes the content of the disclosure group.

## See Also

### Creating a disclosure group

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