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
selfthat describes the content of the disclosure group. - content:
The content shown when the disclosure group expands.