Hello,
is there any example how to use Core Data in a modern way with SwiftUI which also includes updating an NSManagedObjectModel
?
In the most examples which I found only the create and update steps are described.
I am interested in the update step. Where I present an edit screen. Is it better to create a @State
variable for the properties of the NSManagedObjectModel
or should I load the NSManagedObjectModel from an child context and edit the properties directly?
Does anyone have some up to date examples or advice for me?
Cheers Patrick