Mhnd the basha
Mhnd the basha

Reputation: 1

Live activity shows -- instead of seconds in SwiftUI

Using Text (timerInterval: context.state.deliveryTimer, countsDown: true), it shows -- instead of seconds (1:30:--) when the iphone is locked, but its working just fine and countdown every second when the iphone is unlocked (1:30:50)(1:30:49)(1:30:48) and so on

how to solve this issue?

Here is the screenshot-

click for the screenshot

Upvotes: 0

Views: 183

Answers (1)

Bb4kus
Bb4kus

Reputation: 1

The "--" is shown because of iPhone 14/15 Pro model's have an always on display. When you lock your device system is setting the refresh rate down to 1Hz to prevent battery drain.

Upvotes: 0

Related Questions