mobile · Motion · 2026

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

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.

Run it yourself

a clip doesn't do it justice. run it on your phone.

It's a standalone Expo app. Four commands and it's on your screen, gestures and haptics and all.

terminal · expo
git clone https://github.com/Justdan111/mobile-interaction.gitcd mobile-interaction/widgetnpm installnpx expo run:ios

Widget Lab builds iOS widgets and Live Activities, so it needs a development build rather than Expo Go — hence run:ios instead of start.

Platform
mobile
Category
Motion
Year
2026

more from the playground

all experiments