 
     private func handleSingleTap(touchPoint: CGPoint) {
         dispatch_after(
-            dispatch_time(DISPATCH_TIME_NOW, Int64(0.2 * Double(NSEC_PER_SEC))),
-            dispatch_get_main_queue())
+            DispatchTime.now(dispatch_time_t(DispatchTime.now()), Int64(0.2 * Double(NSEC_PER_SEC))),
+            DispatchQueue.main)
         {
             self.photoBrowser.toggleControls()
         }

        }
        
        // Cancel any single tap handling
        NSObject.cancelPreviousPerformRequestsWithTarget(photoBrowser)
        
        // Zoom
        if zoomScale != minimumZoomScale && zoomScale != initialZoomScaleWithMinScale() {

        
        if let le = loadingError {
            le.frame = CGRectMake(
                floorcgf(x: (bounds.size.width - le.frame.size.width) / 2.0),
                floorcgf((bounds.size.height - le.frame.size.height) / 2.0),
                le.frame.size.width,
                le.frame.size.height)
