init(id:content:)
Creates a window group with an identifier.
Declaration
init(id: String, @ViewBuilder content: () -> Content)Parameters
- 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 given view as a template to form the content of each window in the group.