DroppyRingArc
The arc Droppy's System Stats rings are drawn with (DroppyKit 1.23.0): a quiet track, the value as a rounded arc from its darker tail to its bright head, quantized to half a percent so a sample that moves nothing redraws nothing, and never animated.
@MainActor struct DroppyRingArc
The arc Droppy's System Stats rings are drawn with (DroppyKit 1.23.0): a quiet track, the value as a rounded arc from its darker tail to its bright head, quantized to half a percent so a sample that moves nothing redraws nothing, and never animated. ShelfWidgetRing is the ring a widget draws; use this only for a ring of your own size.
Available from DroppyKit 1.23.0.
Initializers
init(progress:lineWidth:track:start:end:)
@MainActor init(progress: Double?, lineWidth: CGFloat, track: Color, start: Color, end: Color)
Creates the arc.
- Parameters:
- progress: 0 through 1, or
nilfor the track alone. - lineWidth: The stroke.
- track: The track's colour.
- start: The tail's colour.
- end: The head's colour.
Properties
body
@MainActor var body: some View { get }