© Ahmed Bakir 2018
Ahmed BakirProgram the Internet of Things with Swift for iOShttps://doi.org/10.1007/978-1-4842-3513-3_3

3. Using Core Motion to Add Physical Activity Data to Your Apps

Ahmed Bakir1 
devAtelier, Tokyo, Japan

In the last two chapters, you started with a drawing of a workout app and fleshed it out with a functioning user interface that could be used to record workout distance based on GPS readings and display the path on a map. Unfortunately, as you may have noticed by playing with the app, the locations only updated when the user moved and the app was suspectible to lost GPS signals, occasionally producing inaccurate distance data. To make a more accurate and appopriate workout app, in this chapter, you will learn how to use Core ...

Get Program the Internet of Things with Swift for iOS: Learn How to Program Apps for the Internet of Things now with O’Reilly online learning.

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