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

# init(_:makeContent:)

Creates a window group with a text view title.

## Declaration

```swift
nonisolated init(_ title: Text, @ContentBuilder makeContent: @escaping () -> Content)
```

## Parameters

- `title`: The doc://com.apple.SwiftUI/documentation/SwiftUI/Text view to use for the group’s title.
- `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. 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. important: The system ignores any text styling that you apply to the Text view title, like bold or italics. However, you can use the formatting controls that the view offers, like for localization, dates, and numerical representations.
