Contents

init(isExpanded:content:header:)

Creates a section with a header, the provided section content, and a binding representing the section’s expansion state.

Declaration

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

  • header:

    A view to use as the section’s header.

See Also

Controlling collapsibility