     ///
     /// - Parameter adjustedPoint: The point of interest for focus
     public func focusAtAdjustedPointOfInterest(adjustedPoint: CGPoint) {
-        if let device: AVCaptureDevice = self._currentDevice {
-            guard !device.isAdjustingFocus,
-                  !device.isAdjustingExposure
-            else {
-                return
-            }
-            
-            do {
-                try device.lockForConfiguration()
-                
-                if device.isFocusPointOfInterestSupported && device.isFocusModeSupported(.autoFocus) {
-                    let focusMode = device.focusMode
-                    device.focusPointOfInterest = adjustedPoint
-                    device.focusMode = focusMode
-                }
-                
-                device.unlockForConfiguration()
-            }
-            catch {
-                print("NextLevel, focusAtAdjustedPointOfInterest failed to lock device for configuration")
-            }
+        guard let device = self._currentDevice,
+                !device.isAdjustingFocus,
+                !device.isAdjustingExposure
+        else {
+            return
+        }
+        
+        do {
+            try device.lockForConfiguration()
+            
+            if device.isFocusPointOfInterestSupported && device.isFocusModeSupported(.autoFocus) {
+                let focusMode = device.focusMode
+                device.focusPointOfInterest = adjustedPoint
+                device.focusMode = focusMode
+            }
+            
+            device.unlockForConfiguration()
+        }
+        catch {
+            print("NextLevel, focusAtAdjustedPointOfInterest failed to lock device for configuration")
         }
     }
     

    
    /// Triggers a camera device position change.
    public func flipCaptureDevicePosition() {
        if self.devicePosition == .back {
            self.devicePosition = .front
        } else {
            self.devicePosition = .back
        }
    }
    
    /// Changes capture device if the desired device is available.

            return .off
        }
        set {
            guard let _ = self._captureSession,
                  let videoOutput = self._videoOutput
            else {
                return
            }

            switch newValue {
            case .off:
                if let vc = videoOutput.connection(with: AVMediaType.video) {
                    if vc.isVideoMirroringSupported {
                        vc.isVideoMirrored = false
                    }
                }
                if let pc = self.previewLayer.connection {
                    if pc.isVideoMirroringSupported {
                        pc.automaticallyAdjustsVideoMirroring = false
                        pc.isVideoMirrored = false
                    }
                }
                break
            case .on:
                if let vc = videoOutput.connection(with: AVMediaType.video) {
                    if vc.isVideoMirroringSupported {
                        vc.isVideoMirrored = true
                    }
                }
                if let pc = self.previewLayer.connection {
                    if pc.isVideoMirroringSupported {
                        pc.automaticallyAdjustsVideoMirroring = false
                        pc.isVideoMirrored = true
                    }
                }
                break
            case .auto:
                if let vc = videoOutput.connection(with: AVMediaType.video), let device = self._currentDevice {
                    if vc.isVideoMirroringSupported {
                        vc.isVideoMirrored = (device.position == .front)
                    }
                }
                if let pc = self.previewLayer.connection {
                    if pc.isVideoMirroringSupported {
                        pc.automaticallyAdjustsVideoMirroring = true
                    }
                }
                break
            }
        }
    }
