DrawMapPin To draw map pin background image use core graphics. How to use I extension UIIamge to added a new function at MapPin.swift file. Method: func addMapPin(UIColor) -> UIImage Example: UIImage(named: "your_image")?.addMapPin(UIColor())