title: dequeueReusableAnnotationViewWithIdentifier in Swift
body: <p>I have the following code for attempting to dequeue an annotation view and then creating one if it doesn't exist but there is a bit of duplication and this doesn't seem like the "swift" way. Any suggestions on how to improve upon this?</p>
  
  <pre><code>func mapView(mapView: MKMapView!, viewForAnnotation annotation: MKAnnotation!) -&gt; MKAnnotationView! {
      let identifier = "annotation"
  
      if let annotationView = mapView.dequeueReusableAnnotationViewWithIdentifier(identifier) as? MKPinAnnotationView {
          configureAnnotationView(annotationView)
  
          return annotationView
      } else {
          let annotationView = MKPinAnnotationView(annotation: annotation, reuseIdentifier: identifier)
          configureAnnotationView(annotationView)
  
          return annotationView
      }
  }
  </code></pre>