-
Notifications
You must be signed in to change notification settings - Fork 477
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
Eventual BG with 1 decimal in the app and in the watch app #320
Conversation
- Use `targetFormatter` instead of `numberFormater` for `eventualBG` in the app, since this has the appropriate `maximumFractionDigits = 1` - Change eventualFormatter to use `maximumFractionDigits = 1` instead of `2` on the watch
@bjornoleh there is a glucoseformatter also in ./FreeAPS/Sources/Modules/Home/View/Header/CurrentGlucoseView.swift which should fit perfectly for this issue |
Thanks for looking! That is in another file, right? I don't think that |
Totally! As per discussion of targets and rounding errors leading to changed targets after multiple unit switches, I suspect that using
|
@mountrcg , perhaps you can write up an issue about this for later? |
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.
LGTM and tested on watch
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.
Looks good and tested in sim with iOS 16.4, iOS 17.5, watchOS 10.4
Use
targetFormatter
instead ofnumberFormater
foreventualBG
in the app, since this has the appropriatemaximumFractionDigits = 1
Change eventualFormatter to use
maximumFractionDigits = 1
instead of2
on the watchResolves #319