<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DisclosureTableRow/init(_:isExpanded:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI18DisclosureTableRowV_10isExpanded7contentACyAA0dE0Vyqd__Gq_Gqd___AA7BindingVySbGSgq_yctcAHRsz0dE5ValueQy_Rsd__lufc"
  },
  "title" : "init(_:isExpanded:content:)"
}
-->

# init(_:isExpanded:content:)

Creates a disclosure group with the given value and table rows, and a
binding to the expansion state (expanded or collapsed).

```
nonisolated init<Value>(_ value: Value, isExpanded: Binding<Bool>? = nil, @TableRowBuilder<Value> content: @escaping () -> Content) where Label == TableRow<Value>, Value == Content.TableRowValue
```

## Parameters

`value`

The value of the disclosable table row.

`isExpanded`

A binding to a Boolean value that determines the group’s
expansion state (expanded or collapsed).

`content`

The table row shown when the disclosure group expands.

---

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)