Login required for access
In order to watch this lesson, you'll need to login to the website.
User Location with CLLocationManager ViewModel
Maps UIKit SwiftUI
For the last feature in this SwiftUI application, I would like to show you how to fetch the user's current location with a CLLocationManager object. We'll be implementing this first starting with our ViewModel. Once we have a hold of the user's location, we'll make sure to update our mapView correctly through a new @Published variable.

Comments (0)
HELP & SUPPORT