My Blog

I write about iOS development, SwiftUI, and lessons learned from building real apps for clients and on my own. Sometimes I dive into AI, app design, or the quirks of shipping indie projects.

How to Import a FIT File to HealthKit

How to Import a FIT File to HealthKit

One of the things that motivated me to develop apps in the Health and Fitness space was seeing my Apple Health workouts section disappointingly empty after recording a bike ride. Whether I used the Strava app on my Apple Watch or tracked it with my Garmin Edge 130 Plus, my workouts simply didn't show up properly in the Fitness app. It quickly became clear that some companies choose not to send full workout data to Apple Health, likely to keep users within their ecosystem. But I also wondered if there was a technical reason - maybe converting and saving a workout to HealthKit was just too complex? I was determined to get this done, so I set out to learn how to import my rides into HealthKit, even though it was a bit tricky figuring out how to format the data.

Read Post