struct GroupBoxStyleConfiguration
The properties of a group box instance.
Availability 有効性
Technology
init(_ configuration: GroupBoxStyleConfiguration
)
Label
is GroupBoxStyleConfiguration.Label
and Content
is GroupBoxStyleConfiguration.Content
.configuration
The properties of the group box instance being created.
Use this initializer within the make
method of a Group
instance to create a styled group box, with customizations, while preserving its existing style.
The following example adds a pink border around the group box, without overriding its current style:
struct PinkBorderGroupBoxStyle: GroupBoxStyle {
func makeBody(configuration: Configuration) -> some View {
GroupBox(configuration)
.border(Color.pink)
}
}
struct GroupBoxStyleConfiguration