creepymonster / GlucoseDirect

App programmed in Swift/SwiftUI for using Libre blood glucose sensors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fraction digits for mmol formatter

aolde opened this issue · comments

Hello,

First, thank you for an awesome app!

I'm wondering if it's possible to change to using minimumFractionDigits: 1 for the mmolLFormatter in GlucoseFormatters? I can understand that it's sometimes is nice to cut the fraction digit to save space and create a cleaner UI, but IMO it would be more consistent and less "jumpy" UI if it always displays the same number of digits. Example of digit jumps: "4.8" --> "4.9" --> "5" --> "5.1"). It's also consistent with how Nightscout and other tools format the numbers. What do you think?