Get the Users Location with Core Location in Swift

Spencer Belton
1 min readSep 17, 2021

Technology has brought us all together and connected us in different ways. A lot of this software requires the users location. From maps services to ride share apps, current location is a key feature in todays society. Thankfully, the implementation is a nice and easy five steps.

In your Xcode project, in the file you wish to access the users location, type the following:

  1. import CoreLocation
  2. let locationManager = CLLocationManager()

--

--