Contents

init(_:isExpanded:content:)

Creates a disclosure group, using a provided localized string resource to create a text view for the label, and a binding to the expansion state (expanded or collapsed).

Declaration

@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, isExpanded: Binding<Bool>, @ContentBuilder content: @escaping () -> Content)

Parameters

  • titleResource:

    The localized label of self that describes the content of the disclosure group.

  • 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.

See Also

Creating a disclosure group