init(_:makeContent:)
Creates a window group with a text view title.
Declaration
nonisolated init(_ title: Text, @ViewBuilder makeContent: @escaping () -> Content)Parameters
- title:
The Text view to use for the group’s title.
- 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. 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.