title: mapView.setRegion in Swift 4
body: <p>I am having problems with my code in Swift 4, Xcode 9. Can someone help me?
  When I run this program it gives me an error. </p>
  
  <p>It says <code>mapView.setRegion(region, animated: true)</code> is not working and giving my an error and when I comment that out, it works with my current location but just not zoomed in closely.</p>
  
  <pre><code>func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
          let location = locations[0]
          if !isInitialized {
              isInitialized = true
              let span:MKCoordinateSpan = MKCoordinateSpanMake(0.01, 0.01)
              let myLocation:CLLocationCoordinate2D = CLLocationCoordinate2DMake(location.coordinate.latitude, location.coordinate.longitude)
              let region:MKCoordinateRegion = MKCoordinateRegionMake(myLocation, span)
              mapView.setRegion(region, animated: true)
              self.mapView.showsUserLocation = true
          }
  }
  </code></pre>