struct ControlGroupStyleConfiguration
The properties of a control group.
Availability 有効性
Technology
init(_ configuration: ControlGroupStyleConfiguration
)
Content
is ControlGroupStyleConfiguration.Content
.Use this initializer within the make
method of a Control
instance to create an instance of the control group being styled. This is useful for custom control group styles that modify the current control group style.
For example, the following code creates a new, custom style that places a red border around the current control group:
struct RedBorderControlGroupStyle: ControlGroupStyle {
func makeBody(configuration: Configuration) -> some View {
ControlGroup(configuration)
.border(Color.red)
}
}
struct ControlGroupStyleConfiguration