Covers many of the places where Live Activities appear, including a new style in the Dynamic Island that delivers more information when iPhone is used in.
Explains how to tailor the Live Activity for each space, structure the content and data, and drive real time updates from start to finish using ActivityKit.
The session moves through Create and update, Optimize.
Key concepts include Live Activities, Dynamic Island, ActivityKit, CarPlay, SwiftUI, WidgetKit, ActivityAttributes, ActivityView.
Platform coverage: ios, ipados.
Condensed Flow
01
Create and update:
Focuses on SwiftUI.
02
Optimize:
Focuses on SwiftUI, Live Activities, ActivityKit, WidgetKit.
More Detail
Additional details
ActivityKit models separate static data in `ActivityAttributes` from changing data in `ContentState`; only the dynamic state is updated during the Live Activity lifetime.
The coffee-order example uses phases such as placed, preparing, ready for pickup, and feedback to decide what belongs in the Live Activity state.
Live Activities need presentations for several surfaces, including the Lock Screen, Dynamic Island, StandBy, Apple Watch Smart Stack, macOS menu bar, and CarPlay Dashboard.
Updates can come from the running app or from push notifications, so the data model should be small, efficient, and focused on what changes over time.
Interaction examples use App Intents such as `RateDrinkIntent` and `LiveActivityIntent` to support lightweight actions without opening the app.