Learn how to request permission to access HealthKit data, as well as read and write data to HealthKit’s central repository in this HealthKit tutorial.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/86336/ios-8-healthkit-swift-getting-started