init(isExpanded:content:header:)
Creates a section with the provided section content.
Declaration
init(isExpanded: Binding<Bool>, @ContentBuilder content: () -> Content, @ContentBuilder header: () -> Parent)Parameters
- isExpanded:
A binding to a Boolean value that determines the section’s expansion state (expanded or collapsed).
- content:
The section’s content.