I'm learning swift and combine framework.
I have a text field (textField) and a button (button).
Using combine framework i make sth when UITextField.textDidChangeNotification appear in NotificationCenter.
let publisher = NotificationCenter.default.publisher(for:
UITextField.textDidChangeNotification, object: self.textField)
//more code
...and everything works fine.
I added a functionality to button - when clicked it should change text in the textField, and i can see that text has been changed, but nothing happen, like if there is no textDidChangeNotification
How can i force to send UITextField.textDidChangeNotification? When i changed text with other fucntion/button there is no textDidChangeNotification (text was not changed by a user => there was no textDidChangeNotification).