<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DisclosureGroup/init(isExpanded:content:label:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15DisclosureGroupV10isExpanded7content5labelACyxq_GAA7BindingVySbG_q_ycxyXEtcfc"
  },
  "title" : "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).

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)