Loop icon indicating copy to clipboard operation
Loop copied to clipboard

feature: Live Activity

Open bastiaanv opened this issue 7 months ago • 33 comments

This PR is an initial/basic version of this Live Activity, without any feature which are spoken of in the Zulipchat.

Look & Feel:

Lock Screen (all iPhone's):

History only History and predictive line Live activity stale (8h limit i.e.)
IMG_2536 IMG_2534 IMG_2535

Dynamic Island (iPhone 14 pro max and higher):

Screenshots are from a iPhone 15 pro max simulator

Dynamic Island minimal Dynamic Island expanded
Simulator Screenshot - iPhone 15 Pro Max - 2024-07-15 at 12 49 36 Simulator Screenshot - iPhone 15 Pro Max - 2024-07-15 at 12 51 14

Settings

Can be found at: Settings -> Alert management -> Live Activity

Root settings Bottom row settings Available datapoints for bottom row
IMG_2537 IMG_2538 IMG_2539

Things to know:

  • The bottom row has a max of 4 items, but less items can be configured for small screen sizes (like the iPhone 13 mini)
  • The bottom row can be configured to the user's wishes. Swap items around, different order etc. The default is: CurrentBG, IOB, COB, UpdatedAt (like in the screenshots)
  • The following events trigger a re-render of the Live Activity:
    • LoopDataManager -> GlucoseStore.glucoseSamplesDidChange
    • LoopDataManager -> CarbStore.carbEntriesDidChange
    • LoopDataManager -> dosing changing
    • NotificationCenter -> UIApplication.willEnterForegroundNotification

bastiaanv avatar Jul 15 '24 10:07 bastiaanv