-1

When you have an active timer in the Apple clock app, it displays the countdown as a colourful interactive widget in the notifications area of the Lock Screen.

I know that it used to be the case that Apple's clock app used a private API to put a countdown on the lock screen, and third-party apps could not achieve the same result.

However I've just seen a parking app (RingGo) showing what looks like a custom-designed animated countdown interface on the Lock Screen. I didn't have to add it to my Lock Screen as I would a WidgetKit widget.

What API is RingGo using to do this?

Apple's native timer:

Apple timer screenshot

RingGo app:

RingGo screenshot

Bernie Sumption
  • 444
  • 6
  • 11

2 Answers2

0

It's the Live Activity API.

Thanks to Andrew in the above comment for the info.

Bernie Sumption
  • 444
  • 6
  • 11
-2

You can use the Text init: init(timerInterval: ClosedRange<Date>, pauseTime: Date? = nil, countsDown: Bool = true, showsHours: Bool = true)

This will create the exact same timer you see for RingGo.

Francesco Leoni
  • 187
  • 2
  • 11