Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change color of bubble for user's location in MapKit?

Tags:

swift

mapkit

The map view shows the user's location with a default blue bubble animation. How can I change that default blue color to another color?

like image 289
JSNoob Avatar asked Dec 01 '22 14:12

JSNoob


1 Answers

You can change the tintColor of the mapView with:

mapView.tintColor = UIColor.greenColor()

Put this in the viewDidLoad() of the ViewController where your mapView is embedded.

like image 97
Caleb Avatar answered Dec 07 '22 01:12

Caleb