init(LocalizedStringKey , content: () -> Content)
Creates a window group with a key for localized title string.
init<S>(S, content: () -> Content)
Creates a window group with a title string.
Availability 有効性
Technology
init(_ title: Text
, content: () -> Content)
title
The Text
view to use for the group’s title.
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. The system ignores any text styling in the title.
init(LocalizedStringKey , content: () -> Content)
init<S>(S, content: () -> Content)