Not possible to transfer the data back to the ViewController (Swift) : It is not possible to transfer the data back to the ViewController **(From BarCodeScannerViewController to TableViewController)**

**SecondVC-(BarCodeScannerViewController.swift)**

    @objc func SendDataBack(_ button:UIBarButtonItem!) {
        if let presenter = self.presentingViewController as? TableViewController {
               presenter.BarCode = "Test"
        }
        self.dismiss(animated: true, completion: nil)
    }
    
**FirstVC-(TableViewController.swift)**

***// The result is (BarCode - )***

    var BarCode: String = ""

    override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
         print("BarCode - \(BarCode)")
         
    }