1

This delegate function fires whenever the map's content changes, regardless of whether it's changed in code or whether the user pans or zooms.

optional func mapViewDidChangeVisibleRegion(_ mapView: MKMapView)

Is it possible to detect when the user manually pans only?

Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
  • 1
    Just an idea: when you change in code, save the last region or camera that you set in code. In `mapViewDidChangeVisibleRegion` check if `mapView` has the value that you set in code the last time. – Gerd Castan Feb 02 '21 at 18:08
  • That's a good idea. I will try it soon. – Ian Warburton Feb 03 '21 at 01:31

0 Answers0