Initializer

init(_:content:)

Creates a window group with a key for localized title string.

Declaration 宣言

init(_ titleKey: LocalizedStringKey, content: () -> Content)

Parameters パラメータ

titleKey

The title key to use for the group’s title.

content

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.

See Also 参照

Creating a Titled Window Group