---
title: "init(id:makeContent:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/windowgroup/init(id:makecontent:)"
---

# init(id:makeContent:)

Creates a window group with an identifier.

## Declaration

```swift
nonisolated init(id: String, @ContentBuilder 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

Discussion The window group uses the given view as a template to form the content of each window in the group.
