init(content: () -> Content)
Creates an unlabeled group box with the provided view content.
Available when
Label
is EmptyView
and Content
conforms to View
.init(content: () -> Content, label: () -> Label)
Creates a group box with the provided label and view content.
init(LocalizedStringKey , content: () -> Content)
Creates a group box with the provided view content and title.
Available when
Label
is Text
and Content
conforms to View
.
Label
がText
であるそしてContent
がView
に準拠する場合に利用可能です。