I have a problem to implementing the MVC pattern in iOS with Swift. According to the Apple documentation, there is a MVC schema:
I am fine with that but as you can see, when the model changes itself (an incoming message from a socket, for exemple) how is it supposed to notify the controller?
For instance, I have a chat application with a model that represents a list of messages. When the model receives a new message, how does it notify the controller? Is there a conventional way to do that?
Thanks

