title: How to add marker for a map view in google maps sdk for ios in swift
body: <p>Trying to add a marker to Google map,but the app is getting crashed at while <code>addMarker()</code> function call,Exception details are as follows, </p>
  
  <p>Terminating app due to uncaught exception '<strong>GMSThreadException</strong>', reason: 'All calls to the Google Maps SDK for iOS must be made from the UI thread'</p>
  
  <p>FYI vwGogleMap is global and in a function I'm trying to plot marker. </p>
  
  <pre><code>func addMarker() -&gt; Void
  {
      var vwGogleMap : GMSMapView?
      var position = CLLocationCoordinate2DMake(17.411647,78.435637)
      var marker = GMSMarker(position: position)
      marker.title = "Hello World"
      marker.map = vwGogleMap
  }
  </code></pre>
  
  <p>Any help would be appreciated,</p>
  
  <p>TIA.</p>