This project serves to present a 'bare-bones' implementation of Core Data and MVVM in SwiftUI.
The 3 binding principles which I wanted to follow when creating this are:
- Views should have absolutely no idea of
CoreData
orNSManagedObjects
- A
DataManager
class should be the one source of truth for all stored data, a singleton of this should be passed into ViewModels - You should be able to UnitTest and use previews freely and independently from the DataManager class
Please feel free to comment on your tips, feedback, questions or anything else related.
- This fantastic project by delawaremathguy