Does anyone know of a service where you can buy pair programming with someone? I need some help with getting over a hump with some SwiftData stuff but can’t seem to see anything like this.
#buildinpublic
#buildinpublic
Comments
When a user creates a new “Reflection” they are shown a form which has an “Answer” input per question the user created to be answered
The form then does a ForEach over that array of structs and when it comes to saving the data I create the “Reflection” record from the struct
I thought I might achieve this using ModelContext.autosaveIsEnabled = false
But, I can have a look at the source, fix the issue for you and answer all your question. We can do a fixed price if you like.
Essentially you can create a child ModelContext and turn off auto save for it which allows you to create a model instance and only commit it to database when you need to.
Nice simple solution compared to what I had