Loop
Loop copied to clipboard
feature: Live Activity
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.) |
---|---|---|
Dynamic Island (iPhone 14 pro max and higher):
Screenshots are from a iPhone 15 pro max simulator
Dynamic Island minimal | Dynamic Island expanded |
---|---|
Settings
Can be found at: Settings -> Alert management -> Live Activity
Root settings | Bottom row settings | Available datapoints for bottom row |
---|---|---|
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
- LoopDataManager ->