Chapter    22

Developing a Swift-Based Application

Now that you’ve learned all about Swift, let’s build an application in Swift. You’ll use most of the techniques discussed in previous chapters to develop a health-related app based on Apple’s HealthKit, a framework that allows you to store and share fitness and health data. And you’ll take advantage of HealthKit’s companion application, called Health, which can provide a quick overview of the information entered into the HealthKit database.

Health applications allow users to take data from external instruments that support the HealthKit API, such as pedometers and fitness trackers. HealthKit doesn’t upload data anywhere due to the sensitive nature of health data. It is recommended that you do ...

Get Learn Swift on the Mac: For OS X and iOS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.