I am a student studying iOS
We are implementing data transfer between views using Delegate.

But I don't understand why the data is not being passed.

Which part should I fix?

And I don't want to use segue.

Great developers, share your knowledge!

I want to send data from LoginVC to ShowCompanyVC.

```
//LoginVC Source...
import UIKit

protocol DataDelegate: class {
    func sendData(data: String)
}

class LoginVC: UIViewController {

    @IBOutlet weak var bizNumTF: UITextField!

    weak var delegate: DataDelegate?

    override func viewDidLoad() {
        super.viewDidLoad()

    }

    @IBAction func LoginButton(_ sender: UIButton) {
        delegate?.sendData(data: "Data")
        guard let vc = self.storyboard?.instantiateViewController(withIdentifier: "ShowCompanyVC") as? ShowCompanyVC else { return }
        self.present(vc, animated: true, completion: nil)
    }}

}

```

ShowCompanyVC Source...

```
import UIKit

class ShowCompanyVC: UIViewController, DataDelegate {

    @IBOutlet weak var testLabel: UILabel!

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    func sendData(data: String) {
        print(data)
        testLabel.text = data
    }
}

```