init(_:id:content:)
Creates a window group with a text view title and an identifier.
Declaration
init(_ title: Text, id: String, @ViewBuilder content: () -> Content)Parameters
- title:
The Text view to use for the group’s title.
- id:
A string that uniquely identifies the window group. Identifiers must be unique among the window groups in your app.
- content:
A closure that creates the content for each instance of the group.
Discussion
The window group uses the specified content as a template to create each window in the group. The system uses the title to distinguish the window group in the user interface, such as in the name of commands associated with the group.