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