Show UserLocation and UserTracking example

suggest change

This 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents