So I am currently trying to learn the MVVM architecture, and trying to create a simple to-do list app as a project using MVVM.
Currently, I have my main view controller (with a table view to show all the tasks), and a button to bring up a tutorial to add a new to-do. This tutorial (a UIV view) contains a text box (to contain the task title) and a UIB button for when the user wants to add the new task.
My question is, how should I get the data accepted by the partial view and have it appear in my view controller's table view while complying with MVVM? My idea was to give raw data back from the teaching to the view controller (via a protocol), which I could then pass on to a view model (in the view controller) to have the data appear in the table view, etc. But I'm not sure if the act of transmitting raw, unformatted data from the teaching to the view controller at all violates MVVM.
EDIT: To clarify, the instruction is declared in another file as the controller