Instead of changing the text value with textField.text you need to create a signal, bind it to the text field and change the signal value. I used the Signal channel, but if you need to save a programmatically changed value, you can use MutableProperty .
class MyViewController: UIViewController { var textField: UITextField! private let textFieldValuePipe = Signal<String?, NoError>.pipe() var textFieldValueSignal: Signal<String?, NoError>! override func viewDidLoad() {
source share