Contents

init(_:content:)

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

Declaration

nonisolated init(_ titleKey: LocalizedStringKey, @ViewBuilder content: @escaping () -> Content)

Parameters

  • titleKey:

    The key for 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