Change the color of the pulsating blue ring around the user's location

I went through the website and did not find a way to adjust the color of the blue pulsating ring around the user's location on the map.

Does anyone know a way to adjust the color of the pulsating ring?

+4
source share
3 answers

This open source project may be useful:

https://github.com/samvermette/SVPulsingAnnotationView

+2
source

The blue color for the user's location is based on the hue color of your map view, and when you change this setting, a new color will be set for the user's location circle.

//Objective-C 
mapView.tintColor = [UIColor redColor];

//Swift 4.2
mapView.tintColor = UIColor.red
+9
source

Swift 3

mapView.tintColor = UIColor.red

Color Literal

enter image description here

0

Source: https://habr.com/ru/post/1537441/


All Articles