DropletHUDStrip
The two halves of a HUD strip, which Droppy lays out around the camera cutout (1.23.0).
struct DropletHUDStrip
On a notch, and on the camera island, the leading half sits at the outer edge of the left wing and the trailing half at the outer edge of the right one, with the cutout empty between them. On the floating island both sit in one row inside the capsule, leading at the start and trailing at the end. Each half is clipped to its own space, so nothing a droplet draws can reach under the camera. You never measure the cutout.
Give each half one small thing: a symbol, a short label, a number. Use DroppyLiveActivityMetrics for their sizes, exactly as a live activity does.
Available from DroppyKit 1.23.0.
Initializers
init(leading:trailing:)
init(@ViewBuilder leading: @escaping @MainActor @Sendable () -> some View, @ViewBuilder trailing: @escaping @MainActor @Sendable () -> some View)
Creates a strip from its two halves.
Properties
makeLeading
let makeLeading: @MainActor @Sendable () -> AnyView
Builds the leading half. Rebuilt on every render pass.
makeTrailing
let makeTrailing: @MainActor @Sendable () -> AnyView
Builds the trailing half. Rebuilt on every render pass.