Design dynamic Live Activities

RSS for tag

Discuss the WWDC23 Session Design dynamic Live Activities

Posts under wwdc2023-10194 tag

9 Posts

Post

Replies

Boosts

Views

Activity

Content replace transition for SwiftUI?
In session wwdc2023-10194 Design dynamic Live Activities at 04:53, it mentioned that we should use 'content replace transition' for animating in and out graphic elements and text. The video shows some kind of animation combined with blurring and opacity changes. But I can't seem to find code for doing this in SwiftUI or UIKit. Does anyone know the API to achieve this? 🤔 Thank you for your help!
0
0
733
Sep ’23
How to animate in live activities?
How do you animate in live activities? I've seen apps been able to update around 1 fps. For example with a character looping a dance animation. How is this done? I don't think you can call Activity.update() every second. Also it wouldn't run in the background all the time anyway? Here's an example of Apple's own WWDC video with a bar animating https://imgur.com/a/yywW7a8
3
0
1.3k
Sep ’23
How to integrate Live Activity into Objective C projects ?
I have a food delivery app similar to Uber Eat it was developed in Objective C now the requirement is to implement the Live activity for tracking the Active orders in live Activity. As i tried Live activity over the Swift it is working fine on all IOS Devices but when i implement that swift code into Objective C using all the standards by Bridging between Swift and Obj C copied the same code, There is no Error or Warning i am seeing in Live activity functionality in Objective C, but Live Activity UI can't seen on Lockscreen even i have checked in settings my app is showing that it supports Live Activity but no view. Can somebody help me out in that how to integrate live activity into Objective C project?
0
0
733
Sep ’23
How to dismiss live activity notification from Watch?
If you update live activity with alertConfiguration: argument, iPhone shows a notification (or expands dynamic island): await runningActivity.update(content, alertConfiguration: .init(title: "Alert", body: "Done!", sound: .default)) Paired Watch presents a notification as well: I cannot find a way to dismiss that live activity notification from Watch. Is there a way to remove it similarly to UNUserNotifications? UNUserNotificationCenter.current().removeDeliveredNotifications(withIdentifiers: [notificationID])
0
0
1.2k
Jul ’23
How to present a minutes countdown in a Live Activity?
I want my live activity to show "in 3 min" text, and for it to be updated automatically every minute. I saw I could do: Text(date, style: .relative) but sadly it include seconds too: 3 min, 2 sec. Is there a way for me to remove the seconds? There are many examples for this use case in the "Design dynamic Live Activities" session from WWDC23, especially at 11:35. How are they implementing that?
1
0
2.1k
Jun ’23
Content replace transition for SwiftUI?
In session wwdc2023-10194 Design dynamic Live Activities at 04:53, it mentioned that we should use 'content replace transition' for animating in and out graphic elements and text. The video shows some kind of animation combined with blurring and opacity changes. But I can't seem to find code for doing this in SwiftUI or UIKit. Does anyone know the API to achieve this? 🤔 Thank you for your help!
Replies
0
Boosts
0
Views
733
Activity
Sep ’23
How to animate in live activities?
How do you animate in live activities? I've seen apps been able to update around 1 fps. For example with a character looping a dance animation. How is this done? I don't think you can call Activity.update() every second. Also it wouldn't run in the background all the time anyway? Here's an example of Apple's own WWDC video with a bar animating https://imgur.com/a/yywW7a8
Replies
3
Boosts
0
Views
1.3k
Activity
Sep ’23
How to integrate Live Activity into Objective C projects ?
I have a food delivery app similar to Uber Eat it was developed in Objective C now the requirement is to implement the Live activity for tracking the Active orders in live Activity. As i tried Live activity over the Swift it is working fine on all IOS Devices but when i implement that swift code into Objective C using all the standards by Bridging between Swift and Obj C copied the same code, There is no Error or Warning i am seeing in Live activity functionality in Objective C, but Live Activity UI can't seen on Lockscreen even i have checked in settings my app is showing that it supports Live Activity but no view. Can somebody help me out in that how to integrate live activity into Objective C project?
Replies
0
Boosts
0
Views
733
Activity
Sep ’23
Accessing Live Activity enabled status from other targets
Is it possible to get enabled status of app's live activity through areActivitiesEnabled inside other targets (other than main target)? seems it always returns true.
Replies
0
Boosts
0
Views
822
Activity
Jul ’23
How to dismiss live activity notification from Watch?
If you update live activity with alertConfiguration: argument, iPhone shows a notification (or expands dynamic island): await runningActivity.update(content, alertConfiguration: .init(title: "Alert", body: "Done!", sound: .default)) Paired Watch presents a notification as well: I cannot find a way to dismiss that live activity notification from Watch. Is there a way to remove it similarly to UNUserNotifications? UNUserNotificationCenter.current().removeDeliveredNotifications(withIdentifiers: [notificationID])
Replies
0
Boosts
0
Views
1.2k
Activity
Jul ’23
How to update live activity UI after performing LiveActivityIntent action
I tried to implement interaction to live activity.Since we don't have force update like in widget, how to update the UI (like remove or add View) After performing the intent action.
Replies
0
Boosts
0
Views
864
Activity
Jul ’23
Live activity stale date
live Activity’s stale date is not getting updated from remote notification. If it’s just from app, it’s working however from remote notification nothing is happening? What could be the possible reason?
Replies
0
Boosts
0
Views
841
Activity
Jul ’23
How to present a minutes countdown in a Live Activity?
I want my live activity to show "in 3 min" text, and for it to be updated automatically every minute. I saw I could do: Text(date, style: .relative) but sadly it include seconds too: 3 min, 2 sec. Is there a way for me to remove the seconds? There are many examples for this use case in the "Design dynamic Live Activities" session from WWDC23, especially at 11:35. How are they implementing that?
Replies
1
Boosts
0
Views
2.1k
Activity
Jun ’23
Отключите эти элементы
Отключите эти элементы
Replies
1
Boosts
0
Views
693
Activity
Jun ’23