In the first chapter, you learned how to use Xcode and Interface Builder to set up the project for the IOTFit workout app and create its user interface. However, due to the complicated setup process, you did not have an opportunity to make it a true Internet of Things (IoT) app by accessing the GPS hardware on the phone. In this chapter, you will learn how to take advantage of Apple’s Core Location framework to request location permission from the user, receive periodic updates on the user’s location, and plot those locations on a ...
2. Using Core Location to Build a Workout Tracking App
Get Program the Internet of Things with Swift for iOS: Learn How to Program Apps for the Internet of Things 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.