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
init(isExpanded: Binding<Bool>, @ViewBuilder content: @escaping () -> Content, @ViewBuilder 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.