init(Text, content: () -> Content)
Creates a window group with a localized title.
init(LocalizedStringKey , content: () -> Content)
Creates a window group with a key for localized title string.
Availability 有効性
Technology
init<S>(_ title: S, content: () -> Content) where S : StringProtocol
title
The string to use for the title of the group.
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, content: () -> Content)
init(LocalizedStringKey , content: () -> Content)