Since the launch of the Apple Health app and HealthKit framework in September 2014, iPhone and Apple Watch users have had a simple way of storing all of their health related data. In Apple’s words “HealthKit provides a central repository for health and fitness data on iPhone and Apple Watch”.
Although the Health app has a simple UI and can provide health and fitness data to the user, the real power is made available when app developers interface with the HealthKit framework and build apps that specialise in certain areas.
Todays tutorial will focus on adding HealthKit to your app and preparing your app to be able to write and query data from Apple Health. This is part of a series of HealthKit tutorials that we will make with the next tutorial focusing on querying data. In future posts we will look at the HKSampleQuery, HKStatisticsCollectionQuery, to name a couple. [Read more…]