I am trying to pass my UiTextfield DATA from one view controller to another view controller programmatically. I am not using storyboard, but doing all the code programmatically.
The code below is what I would like to pass from one view controller to another.
var userPhoneNumberTextField: UITextField = {
let textField = UITextField()
textField.backgroundColor = .clear
textField.text = ""
textField.font = UIFont(name: "Open Sans", size: 30)
textField.addTarget(self, action: #selector(confirmationCodeAction), for: .editingChanged)
return textField
}()