Show UserLocation and UserTracking example
suggest changeThis will show the user location on the map. Location permission and a usage description are required, or the dot never appears. The Swift samples are Swift 3.
Objective-C
[self.map setShowsUserLocation:YES];
Swift
self.map?.showsUserLocation = true
This will track the user location on the map, updating the region to follow the user.
Objective-C
[self.map setUserTrackingMode:MKUserTrackingModeFollow];
Swift
self.map?.userTrackingMode = .follow
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents