iOS Show UserLocation and UserTracking example


Example

This will show the user location on the map

Objective-C

[self.map setShowsUserLocation:YES];

Swift

self.map?.showsUserLocation = true

enter image description here

This will track the user location on the map, updating regions according

Objective-C

[self.map setUserTrackingMode:MKUserTrackingModeFollow];

Swift

self.map?.userTrackingMode = .follow