Hello everyone I'm new in swift.
I have attached a picture to describe my reasoning on MVC pattern.
I would like to ask you some questions about the model:
1) The model can contain methods validation of input fields?
2) The model can contain bisness logic for access to a database?
3) the model may contain a mix of both of my questions?
I also thought about a solution but I'm not sure this is correct ..
The controller called a classa Delegate (where I write all the logic inside) the Delegate calls the Model class (specialized only for CRUD operations insert, delete and c ...)
Thanks for all your help.