A demo app showing how to read a FIT file and save a cycling workout to HealthKit.
Tip
Check out the full blog post on my website: How to import a FIT File to HealthKit
The demo app will:
- Read a FIT file from a sample file or Files app
- Parse the FIT file using FitDataProtocol
- Save the workout data to HealthKit
- Read the workout from Apple Health and show some details and route