     
 }
 
-// MARK: - UIGestureRecognizer
+// MARK: - UIGestureRecognizerDelegate
 
 extension CameraViewController: UIGestureRecognizerDelegate {
 

    internal var zoomPanGestureRecognizer: UIPanGestureRecognizer?
    internal var flipDoubleTapGestureRecognizer: UITapGestureRecognizer?
    
    // MARK: - object lifecycle
    
    public override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {

            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)
