Add IOB display option for contact watch face#512
Open
luborjurena wants to merge 7 commits intoloopandlearn:devfrom
Open
Add IOB display option for contact watch face#512luborjurena wants to merge 7 commits intoloopandlearn:devfrom
luborjurena wants to merge 7 commits intoloopandlearn:devfrom
Conversation
Extends the contact feature to support showing IOB (Insulin on Board) alongside the existing trend and delta options. Users can now choose to include IOB in the main BG contact or create a separate IOB contact.
Fix delayed IOB contact update with latest value
Allow selecting which contact to include Trend, Delta, or IOB into, instead of only including into the BG contact. When a field is set to "Separate", it becomes available as a target for other fields. This enables groupings like BG+Trend in one contact and Delta+IOB in another.
Adds a "Color Mode" setting with two options: - Static: Uses the selected text color (existing behavior) - Dynamic: Colors text based on BG range using raw mg/dL value - Green: In range - Yellow: High (>= highLine) - Red: Low (<= lowLine) When Dynamic mode is selected, the text color picker is hidden since the color is determined automatically based on glucose thresholds. Files changed: - ContactColorMode.swift: New enum with color logic - Storage.swift: Add contactColorMode setting - ContactSettingsViewModel.swift: Add colorMode property - ContactSettingsView.swift: Add Color Mode picker - ContactImageUpdater.swift: Use raw BG value for color calculation - project.pbxproj: Add ContactColorMode.swift to project
Add flexible contact grouping with target selection
Allow static and dynamic colors based on BG range (inspired by Trio)
Contributor
|
Hi, Thanks for the contribution! |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Extends the contact feature to support showing IOB (Insulin on Board) alongside the existing trend and delta options. Users can now choose to include IOB in the main BG contact or create a separate IOB contact.