---
title: "init(_:isExpanded:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/disclosuretablerow/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).

## Declaration

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