title: How to detect camera position for google map in swift
body: <p>I get to know after searching that idleAtCameraPosition and didChangeCameraPosition this methods are called when the map moves .
  How can i write this method for swift? I have set delegate to CLLocationManagerDelegate and GMSMapViewDelegate but still this methods are not called. I have written method as below:</p>
  
  <pre><code>func mapView(mapView: GMSMapView!, didChangeCameraPosition position: GMSCameraPosition!) {
                  print(position)
  }
  
  func mapView(mapView:GMSMapView!,idleAtCameraPosition position:GMSCameraPosition!)
  {
      print(position)
  
  }
  </code></pre>
  
  <p>But my method is not getting called.
  Also I want to customise info window just like done here : <a href="https://stackoverflow.com/questions/16746765/custom-info-window-for-google-maps">Custom Info Window for Google Maps</a> . But can't find the methods how to do same in swift. I am new to swift s o not getting this.</p>