WeightGlance 4.0.0

| Tags: dev, ios, app, weight, health

Last week I released an update of my weight tracking app WeightGlance.

It’s now at version 4.0.0. The major version jump from 3.0.0 to 4.0.0 is due to the fact that it now requires at least iOS 17 which is somehow a breaking change from version 3.0.0 requiring only iOS 15 and later. As with each such update I modernized the code to be up to date with swift 5.9 and iOS 17.

But there are also two new things in version 4.0.0.

The biggest new change is that with iPadOS 17 the Health app and with that HealthKit comes to the iPad. And WeightGlance now also runs on iPads. It looks like it does on iPhones but on a bigger screen. But it also supports split view and slide over. Getting it on iPads wasn’t just adding that device type and checking all boxes on portrait and landscape modes, though. On the iPhone the app only supports portrait mode, but on an iPad all those possible size changes that occur as you rotate your iPad and use split view or slide over need to be handled, and even though the app uses auto layout, that alone does not suffice here. Also strange was that I had to remove HealthKit from the required device capabilities. Apparently that device capability is now used to constrain HealthKit using apps to only run on iPhones.

The second change adds a bit more information to the overlay that appears when you put and move your finger on the screen. Before it only showed a vertical line and the weight at that length. This is useful to find out what your weight was on a day or during a week in the past. But to find out for which week exactly a bar displayed the average weight was a bit complicated. You had to count the weeks yourself. Now the overlay also displays the start and end date of the week your finger is currently on.

As always you can get WeightGlance on the AppStore.