At the moment I am working on a running app for the iPhone.
One issue that I have is, that I am building the HKWorkout using the HKWorkoutBuilder according to Apples Documentation - https://developer.apple.com/documentation/healthkit/hkworkoutbuilder.
But I am not able to associate the totalDistance with the workout – mentioned here in the Documentation - https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/adding_samples_to_a_workout. totalDistance is nil when I try to read it from the workout – no surprise.
I think I miss something here. Thanks in advance.
3
0
1.4k