Is it possible to make an only minutes (1m) countdown in a Live Activity?

224 views Asked by At

It's weird because in documentation (SwiftUI, Live Activities, Dynamic Island) I keep seeing images like:

enter image description here

Or even

enter image description here

And in iPhone clock app (timer):

enter image description here

But it seems like the only way to make a functional timer is:

Text(context.state.startTime, style: .timer)

But it's very limited when it comes to formatting.

It has it's own behaviors for example on Stand by mode; it changes to things like: "< 1 minute" or "5 minutes" but on the dynamicIsland limited space its not helping. You end with "2:45:56" when maybe you need "2h"

Is any way to achieve this behavior that we se so often in Docs and videos?

0

There are 0 answers