Learn Courses My Dashboard

Proper MVVM for Core Data?

What is the proper way to handle Core Data operations in the Model-View-View-Model (MVVM) pattern?

Is it what this person argues? SwiftUI and Core Data: The MVVM Way | by Mattia Righetti | Better Programming

I just completed the iOS Databases Module 5 that goes over Core Data. However, I was surprised to see that we include, so much of our Core Data operations within a View itself versus a ViewModel…

I’m not experienced enough to know the right way, but am leaning towards the cleaner end result the guy argues in the Better Programming article above. Apologies too, if this later gets covered in Module 6 in the iOS Databases course.


Module 5 is just a precursor to Module 6 where the RecipeApp is enhanced with Core Data. Module 5 provides a bit of background of how Core Data works including some commonly used commands to create, update and delete data. It is not intended to be a blue print for an App.

Thanks Chris! Looks like I jumped the gun a bit on this then :sweat_smile:

Looking forward to module 6 then :slight_smile: