This HealthKit tutorial shows you step by step how to track workouts using the HealthKit APIs by integrating an app with the system’s Health app.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/6992-healthkit-tutorial-with-swift-workouts