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

# init(makeContent:)

Creates a window group.

## Declaration

```swift
nonisolated init(@ContentBuilder makeContent: @escaping () -> Content)
```

## Parameters

- `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.
