init(id:makeContent:)
Creates a window group with an identifier.
Declaration
nonisolated init(id: String, @ViewBuilder makeContent: @escaping () -> Content)Parameters
- id:
A string that uniquely identifies the window group. Identifiers must be unique among the window groups in your app.
- makeContent:
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.