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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.