I have requirement like on my current location one view will display. It will rotate if device was rotate or location will be change.I research lot but got all the code whic
We can rotate image based on course property CLLocation Class
let marker:GMSMarker = GMSMarker.init(position: currentLocation!) let head = locationManager.location?.course ?? 0 marker.rotation = head marker.icon = UIImage(named: "testyCar.png") marker.map = mapView