CompactLiveActivityContext

Context passed to the seat-aware compact factories (DroppyKit 0.7.0).

struct CompactLiveActivityContext

The same compact accessory is mounted in geometrically different places: a wing beside the notch cutout, an island slot, and the small round companion pill. The zero-argument factories predate that spread and cannot tell them apart; this context is how a droplet renders a 60pt wing differently from a 24pt puck.

Initializers

init(surface:seat:slotSize:)

init(surface: DropletSurfaceKind, seat: DropletLiveActivitySeat, slotSize: CGSize)

Creates a compact context. Constructed by hosts, read by droplets.

Properties

seat

let seat: DropletLiveActivitySeat

The seat the accessory is being rendered for. .compact is the island/notch owner seat; .secondary is the detached companion pill.

slotSize

let slotSize: CGSize

The resolved content slot, in points. For the companion pill this is the square Droppy's own companions draw their mark in (album art, a coding agent's logo), inset from the puck like theirs; the host scales a larger mark down to it and clips to it. For owner wings it is the wing rect the accessory may fill.

surface

let surface: DropletSurfaceKind

The surface family hosting the accessory.