-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Issue #267 - Displaying decimals on Watch for mmol #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| func getCurrentTimelineEntry(for complication: CLKComplication, withHandler handler: (@escaping (CLKComplicationTimelineEntry?) -> Void)) { | ||
|
|
||
| let formatter = NumberFormatter(); formatter.usesSignificantDigits = true; formatter.minimumSignificantDigits = 2; formatter.maximumSignificantDigits = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this display with mg/dl?
Need to avoid repeating this code three times.
|
Happy to use @bharat's extension (provided it works on watch also) - I knew it was quick and dirty solution - just needed to make something workable for users of mmol/L. Happy to close the thread if you want? |
|
I would rather you keep it open and then update it to use the HKUnit unit extension when it's available! |
Update Dev Branch
|
Once the HKUnit extension is available, include it in the watch target along with |
|
The HKUnit extension has been merged into dev, if you want to rebase and update this PR to use it. |
|
I believe this is resolved properly with #379 |
… flag (#303) * set insulin delivery log header label colour * blocking entry deletion with existing flag
Updated code to use significant digits to enable decimals to be shown on both watch app and complication.