         let semaphore = DispatchSemaphore(value: 0);
         let mapRect = mapView.visibleMapRect
 //        let boundingBox = MKMapRect(region)
-        snapshotter.start(with: backgroundQueue, completionHandler: { (snapshot: MKMapSnapshot?, error: NSError?) -> Void in
             
+        snapshotter.start(with: backgroundQueue) { snapshot, error in
             guard let snapshot = snapshot else {
                 semaphore.signal()
                 return

}

public extension Geometry {
    public func debugQuickLookObject() -> AnyObject? {
        
        let region: MKCoordinateRegion

            mapViewImage = finalImage
            
            semaphore.signal()
        }
        let delayTime = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
        let _ = semaphore.wait(timeout: delayTime)

