         captureSession?.stopRunning()
         cleanUp()
         
-        _isCapturing = false
+        isCapturing = false
     }
     
     private func cleanUp() {


        captureSession?.startRunning()
        
        _isCapturing = true
    }
    
    func stopCapture() {


class BarCodeReaderView: View {
    
    private var previewLayer: AVCaptureVideoPreviewLayer {
        return layer as AVCaptureVideoPreviewLayer
    }
    weak var delegate: BarCodeReaderViewDelegate?
    var listensAppNotifications = true
    private(set) var isCapturing = false
    private var captureDevice: AVCaptureDevice?
    private var captureSession: AVCaptureSession?
    private var captureDeviceInput: AVCaptureDeviceInput?
