Exordium

Core Location is Apple’s native framework for obtaining a device’s location, altitude, and orientation. Core Location is also how a device interacts with iBeacon devices. All of this is very cool technology and can be utilized in amazing ways. For example, I have used Core Location to create a pothole reporting app, RoadHazard. I really view the mobile device as a way to integrate technology with day to day human life.

Core Location collects data via onboard components such as Wi-Fi, GPS, Bluetooth, magnetometer, barometer, and cellular hardware. In this post, I’ll show you how to initially set up Core Location in your iOS app by using a simple Storyboard-based user interface, the CLLocationManager and location simulation.

You can find the code to this project on GitHub: https://github.com/andrew-lundy/core-location-tutorial/tree/set-up

Environment: Xcode 12, Swift 5, Deployment Target: iOS 13.

#swift #programming #core-location #ios-app-development #ios

Core Location — Setting up Core Location with UIKit
1.45 GEEK