init(Text, id: String, content: () -> Content)
Creates a window group with a localized title and an identifier.
init<S>(S, id: String, content: () -> Content)
Creates a window group with a title string and an identifier.
Availability 有効性
Technology
init(_ titleKey: LocalizedStringKey
, id: String
, content: () -> Content)
titleKey
The title key to use for the title of the group.
id
A string that uniquely identifies the window group. Identifiers must be unique among the window groups in your app.
content
A closure that creates the content for each instance of the group.
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.
init(Text, id: String, content: () -> Content)
init<S>(S, id: String, content: () -> Content)