Post

Replies

Boosts

Views

Activity

Reply to Changing the live activity without push notification
I have the same issue. I would also like to update the timer text label as soon as the timer counts down to 0. Using background tasks is not reliable enough for this use-case, as the timing of background tasks is up to the system and might only be called several minutes after the countdown has already expired. Using server-side push notifications for this simple and very common use-case also seems to be a ton of work that could be avoided. Something like Text(timerInterval: context.state.deliveryTimer, countsDown: true, timerEnded: "EXPIRED") would be quite nice.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Sep ’22
Reply to Live Activity Not Working on Physical Device
UPDATE It stopped working with beta 3, beta 4 is also not working for me. Can someone confirm that Live Activities show up on a physical device running beta 4? Any workarounds?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to Advanced Math Functions In Swift
Have you tried the Swift Numerics package? Swift Numerics provides a set of modules that support numerical computing in Swift. https://www.swift.org/blog/numerics/
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to Changing the live activity without push notification
I have the same issue. I would also like to update the timer text label as soon as the timer counts down to 0. Using background tasks is not reliable enough for this use-case, as the timing of background tasks is up to the system and might only be called several minutes after the countdown has already expired. Using server-side push notifications for this simple and very common use-case also seems to be a ton of work that could be avoided. Something like Text(timerInterval: context.state.deliveryTimer, countsDown: true, timerEnded: "EXPIRED") would be quite nice.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22