O'Reilly logo

Program the Internet of Things with Swift for iOS by Manny de la Torriente, Gheorghe Chesler, Ahmed Bakir

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter    3

Accessing Health Information Using HealthKit

Ahmed Bakir

Introduction

For the last few years, Apple has provided two core frameworks that have sped up the time to develop iOS health apps considerably: HealthKit and Core Motion. HealthKit provides a central repository for all apps to sync health data and Core Motion provides access to the iPhone’s accelerometer and pedometer, allowing you to retrieve limited health information about a user without external accessories.

HealthKit was a baffling surprise to everyone when it was announced; no one could figure out why Apple would “compete” with its partners by building a framework to do the same thing they had all been doing for years, tracking information. As time progressed, HealthKit’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required