Contents

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

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.