How do I create an image overlay and add to MKMapView in Swift 2?
<p>I am trying to learn MapKit and am now trying to add an <b>image (not a polygon, circle, rectangle, etc.)</b>  as an overlay to the map view. I can't seem to find any sample code to help explain how to do this.</p>

<p>So far my code in ViewController.swift is:</p>

<pre><code>import UIKit
import MapKit
import CoreLocation

class ViewController: UIViewController, MKMapViewDelegate, CLLocationManagerDelegate {

    @IBOutlet var mapView: MKMapView!

    var locationManager: CLLocationManager!
    var mapOverlay: MKOverlay!

    override func viewDidLoad() {
        super.viewDidLoad()

        //Setup our Location Manager
        locationManager = CLLocationManager()
        locationManager.delegate = self
        locationManager.desiredAccuracy = kCLLocationAccuracyBest
        locationManager.startUpdatingLocation()

        //Setup our Map View
        mapView.delegate = self
        mapView.mapType = MKMapType.Satellite
        mapView.showsUserLocation = true
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}
</code></pre>

<p>I know I need to use:</p>

<pre><code>func mapView(mapView: MKMapView, rendererForOverlay overlay: MKOverlay) -&gt; MKOverlayRenderer
</code></pre>

<p>and the drawMapRect function but I don't know what to put in them. Also, it would be useful if all the code is in ViewController.swift</p>

<p>I only need one overlay so I don't need a class. I need it to be an image overlay (so it can resize), not an annotation. I also tried to follow the tutorial at <a href="http://www.raywenderlich.com/30001/overlay-images-and-overlay-views-with-mapkit-tutorial" rel="noreferrer">http://www.raywenderlich.com/30001/overlay-images-and-overlay-views-with-mapkit-tutorial</a> but there is not a section with all the code and I find it hard to follow along. Can you people please help me how to create <b>image</b> MKOverlays and add them to MKMapKit?</p>

<p>Thanks in advance...</p>