Hi Ennio, I have a question regarding your article.
Bartosz Olszanowski
13

Hello guys! The way I see the solution is to create a protocol for each of your models, like: protocol MyAwesomeModelInterface: Storable {…}, where the model’s interface is declared. And make your models conform to their corresponding protocols. After you do that, you can use it in your controllers through these protocols without exposing NSManagedObject or Object APIs to the controller.

Like what you read? Give Bulat Khabirov a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.