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
Swift 4+
Thanks to priya.vr. When you updating location marker, try this:
let locationManager = CLLocationManager() marker.position = position marker.appearAnimation = .none marker.rotation = locationManager.location?.course ?? 0 marker.map = map