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

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


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?
