             break
         }
     }
-    
+}
+
+extension CameraViewController {
+    
+    internal func handlePanGestureRecognizer(_ gestureRecognizer: UIPinchGestureRecognizer) {
+        switch gestureRecognizer.state {
+        case .began:
+            self.panStartPoint = gestureRecognizer.location(in: self.view)
+            self.panStartZoom = CGFloat(NextLevel.shared.videoZoomFactor)
+            break
+        case .changed:
+            let newPoint = gestureRecognizer.location(in: self.view)
+            let scale = (self.panStartPoint.y / newPoint.y)
+            let newZoom = (scale * self.panStartZoom)
+            NextLevel.shared.videoZoomFactor = Float(newZoom)
+            break
+        default:
+            break
+        }
+    }
+
     internal func handlePhotoTapGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer) {
         // play system camera shutter sound
         AudioServicesPlaySystemSoundWithCompletion(SystemSoundID(1108), nil)

                focusTapGestureRecognizer.delegate = self
                focusTapGestureRecognizer.numberOfTapsRequired = 1
                gestureView.addGestureRecognizer(focusTapGestureRecognizer)
            }
        }
        

    
}

// MARK: - UIGestureRecognizerDelegate

extension CameraViewController: UIGestureRecognizerDelegate {

