DEV Community

Apoorv Darshan
Apoorv Darshan

Posted on

Putting an active-session timer on the iOS Lock Screen

The feature I'm proudest of in Delts is also the least flashy: the Lock Screen Live Activity for an active workout.

Here's the problem it solves. You start a session, lock your phone, and go do your set. Without a Live Activity, you'd unlock, find the app, and confirm the timer's still running. With one, the session timer lives on your Lock Screen the entire time the workout is active.

That fits the whole timer-first philosophy. One red button starts the session, the Live Activity carries it, and the red button ends it. The app fades into the background where it belongs while you're actually lifting.

Live Activities are a genuinely nice iOS 17 API to build against once you accept their update constraints, and for a workout timer the model fits perfectly. Built solo in SwiftUI by an ACE Certified Personal Trainer.

Free core app on the App Store:
https://apps.apple.com/us/app/delts-workout-tracker/id6778653288

Top comments (0)