DroppyWashPillButtonStyle
The labelled control of Droppy's timer widgets: Pomodoro's Start Timer pill and its Focus and Break pills, a flat wash under rounded semibold type.
@MainActor struct DroppyWashPillButtonStyle
The labelled control of Droppy's timer widgets: Pomodoro's Start Timer pill and its Focus and Break pills, a flat wash under rounded semibold type. Since 1.21.0 every labelled control a widget draws; see DroppyWashCircleButtonStyle for the family's rules.
34pt tall alone on the shelf (15pt type, 16pt sides), like Start Timer; under 30pt (28 beside another widget or beside the camera, 24 for a small choice) it is the phase pill (12pt type, 9pt sides).
Added in 1.21.0; a droplet that uses it declares minAPI 1.21.0.
Initializers
init(height:tone:usesAdaptiveForegrounds:)
@MainActor init(height: CGFloat = 34, tone: DroppyWashTone = .neutral, usesAdaptiveForegrounds: Bool = false)
Creates the style.
- Parameters:
- height: The pill, in points. 34 alone on the shelf, 28 paired or beside the camera, 24 for a small choice.
- tone:
neutralor the accent. - usesAdaptiveForegrounds: Pass
usesAdaptiveForegrounds.
Methods
makeBody(configuration:)
@MainActor func makeBody(configuration: Configuration) -> some View