Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GMSMapView Prevents UIScrollView from Scrolling

I have a GMSMapView nested within a UIScrollView. I have turned off scrolling functionality for the GMSMapView

mapView.settings.tiltGestures = false
mapView.settings.scrollGestures = false
mapView.settings.rotateGestures = false

However, whenever I attempt to scroll the view with the intention that the UIScrollView will scroll, nothing happens. What can I do to fix this?

like image 288
William Bing Hua Avatar asked Oct 10 '15 20:10

William Bing Hua


1 Answers

In swift 3.0

mapView.settings.setAllGesturesEnabled(false)
like image 167
Alex Chase Avatar answered Oct 13 '22 19:10

Alex Chase