Contents

init(_:content:)

Creates a disclosure group, using a provided localized string resource to create a text view for the label.

Declaration

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

Parameters

  • titleResource:

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

  • content:

    The content shown when the disclosure group expands.

See Also

Creating a disclosure group