init(_:content:)
Creates a group box with the provided view content and title.
Declaration
nonisolated init(_ titleKey: LocalizedStringKey, @ViewBuilder content: () -> Content)Parameters
- titleKey:
The key for the group box’s title, which describes the content of the group box.
- content:
A Viewbuilder that produces the content for the group box.