DroppyGlassButtonStyle
The glass control as a button style for labels that size themselves: shape and fill in, the ink from the fill unless the label sets its own (an accent glyph, red for a destructive action).
@MainActor struct DroppyGlassButtonStyle
DroppyQuietButtonStyle, DroppyAccentButtonStyle and DroppyCircleButtonStyle are this control with Droppy's own sizing; reach for this one when a label brings its own.
Initializers
init(shape:fill:)
@MainActor init(shape: AnyShape = AnyShape(Capsule(style: .continuous)), fill: DroppyGlassControl.Fill = .veil)
Creates the style.
- Parameters:
- shape: The control's silhouette. Defaults to a capsule.
- fill: What is painted over the glass. Defaults to plain glass.
Properties
fill
@MainActor var fill: DroppyGlassControl.Fill
shape
@MainActor var shape: AnyShape
Methods
makeBody(configuration:)
@MainActor func makeBody(configuration: Configuration) -> some View