I work on an App that uses Live Activities and shows a countdown. We want to use it without the seconds. We are currently using Text(getDate(), style: .relative). Is there a new method in Swift to show the countdown on a Live Activity without seconds being displayed.
Post
Replies
Boosts
Views
Activity
Hi using this new Text method for timers is not counting down. Here is an example of how I implemented it.
Text(.now, format:.timer(countingDownIn: Date.now..<Date.now.addingTimeInterval(120),
showsHours: true,
maxFieldCount: 2,
maxPrecision: .seconds(60))
)
After waiting over a minute it never counts down