Widget Lab
A host app for iOS widgets and Live Activities, with SwiftUI rendered from @expo/ui and no Swift in the repo. The delivery card runs itself with the app force-quit.
View on GitHub- expo-widgets
- SwiftUI
- Live Activities
What it is
Two Live Activities: a parcel in transit, with a route rail that fills amber as the van covers ground, and the Foody order card, where a rider travels a mint progress bar under a soft halo. Both supply every presentation the system can ask for — Lock Screen banner, the cut-down CarPlay variant, and both Dynamic Island states.
How it's built
The trip is described by when it started and when it is due, not by a minute count the app decrements. So SwiftUI ticks the ETA down every second on its own, with the app suspended or force-quit. Position takes whichever is further along — the last push, or what the clock implies — which is what guarantees the truck actually lands at the destination.