JohanDegraeve / xdripswift

xdrip for iOS, written in Swift
GNU General Public License v3.0
329 stars 330 forks source link

Implement a “Contact Trick” to update BG as watchOS complication #481

Closed callms closed 6 months ago

callms commented 9 months ago

As suggested by @paulplant in #479, we might consider porting the Contact Trick used by OpenGlück in xDrip4iOS.

This trick allows to update the photo of a contact, so that its profile picture matches the current BG. This, in turn, can be used on Apple Watch to provide near-realtime update of the current BG, without usual WidgetKit restrictions.

Image from OG showing how it renders on the watch:

image

yurique commented 6 months ago

I've been playing with this this weekend (mostly copying things around to add new settings to the app and "copying" things from OpenGlück) and I think I got it working:

(left icon - contact trick, middle - native G7 complication) IMG_3212

paulplant commented 6 months ago

I'll close this as an issue as we are now tracking it directly in a PR -> #505