Commit Graph

25 Commits

Author SHA1 Message Date
Paul Plant d63a22f883 remove TimeInterval() from ConstantsWidget to prevent compiler complaining 2024-05-01 21:04:26 +02:00
Paul Plant 989f6f82c4 small large widget layout change for live activity
- to match systemSmall widget changes
2024-05-01 16:34:18 +02:00
Paul Plant 6d32a000e3 add placeholder chart data to the widgets (iOS and WatchOS)
- also remove "no trend" arrow that was previously added as it doesn't look good - prefer to leave it blank
2024-04-29 20:46:25 +02:00
Paul Plant 9b4ca5b941 initial localizations of Watch App and Complications
- EN
- ES

Also changes to hide the widget values if the BG values are more than 20 minutes old
2024-04-27 18:25:50 +02:00
Paul Plant 64ac32fb47 remove @available iOS/WatchOS checks as deployment target makes them redundant 2024-04-20 13:21:12 +02:00
Paul Plant 6e0f8c8ad5 updates to GlucoseChartType to configure new Siri intent type from the existing swiftui glucose chart
- extend and improve the current swiftui glucose chart
- add siri glucose chart type
- add conditional handlers for frame, aspectRatio and padding etc
- tidy up ConstantsGlucoseChartSwiftUI file ro improve readability and remove unnecessary constants
2024-04-20 13:01:03 +02:00
Paul Plant 7103c3ba31 colour updates/corrections for all widgets
- colour updates/corrections for all widgets

- remove gray color for not recent readings in watch complications

- when using standard apple widgetkit constraints, changing the colour of the bg value and delta to gray when > x minutes old makes no sense as it doesn't indicate that the bg readings are old, rather than that the complication hasn't gotten new data yet (which can be normal for the Watch complication updates).
96ec614a
2024-04-11 11:42:57 +02:00
Paul Plant bfe1e9dcb4 Correction to live activity compactTrailing text color when no recent BG values 2024-04-07 10:00:32 +02:00
Paul Plant 1f274188b0
add keep alive icon to iOS widgets for follower modes (#520) 2024-04-01 13:08:15 +02:00
Paul Plant 29200cf41e
fix merge errors (#519)
fix errors caused by bad merging of conflicted files
take advantage to fix a small complier issue left over in the widget provider
2024-03-30 20:50:44 +01:00
Samuli Tamminen 16529885b3 Live Activity downsampling: improvements (#518)
* lower the number of readings to send to live activity to stay under 4kB

* change some widget attributes to be computed on demand

* change private widget attributes naming convention to match others
2024-03-30 09:24:59 +01:00
Samuli Tamminen a1bac3f3fd downsample data if needed before sending it to live activity (#517)
Live Activities have maximum payload size of 4kB.
At least Libre 2 EU produces so many values that they cannot be pushed to Live Activity unfiltered,
causing Live Activity start to fail with error: Payload maximum size exceeded.

Fix by downsampling (just pick every nth reading) to maximum of 100 readings.
The threshold value is got by trial and error, then tuning it down a bit to leave some room for different length strings.
2024-03-30 09:23:05 +01:00
Paul Plant df65085ca6 add documentation and clean-up some comments/code 2024-03-23 21:15:10 +01:00
Paul Plant 00ac34d298 UI updates to live activity and system widgets 2024-03-23 15:04:58 +01:00
Paul Plant a9a3d1d487 dynamically set watch view to screen size
using WKInterfaceDevice.current().screenBounds.size the chart size is modified together with text sizes in all views in order to make sure the view renders nicely in small watches
2024-03-15 20:24:36 +01:00
Paul Plant 866211b5fe watch chart change for 44mm. systemSmall iOS widget update 2024-03-13 22:16:44 +01:00
Paul Plant 4f0b9589e6 widget + live activity view updates 2024-03-12 11:58:14 +01:00
Paul Plant 05f99b5779 implement data source info to widgets 2024-03-12 11:55:28 +01:00
Paul Plant 3229a0e532 watch app improvements, follower mode data source, iOS widget improvements
- also widget data is stored in a new userDefaults variable based upon the app bundle to avoid cross-contamination if various versions are installed on the same device
2024-03-10 11:35:05 +01:00
Paul Plant 48beccc216 implement follower mode functionality for Watch App 2024-03-06 09:15:00 +01:00
Paul Plant 2929118301 added widget .accessoryRectangle + various improvements 2024-03-05 17:22:50 +01:00
Paul Plant d671e6ab0a WidgetKit implementation for Watch and xDrip targets 2024-03-04 20:04:07 +01:00
Paul Plant 214ab60ac8 update 240226 2024-02-26 18:10:53 +01:00
Paul Plant c0308aa7f9 update 240225 2024-02-25 12:39:47 +01:00
Paul Plant c581b2bbcd initial wkcomplication structure 2024-02-23 17:42:23 +01:00