Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
2 answers
343 views

Changing SwiftData @Model

In my Swift app I had a data model which I needed to remodel. After that, at the root level of my app, the code crashes when trying to load the ModelContainer, no matter what. The error is a huge ...
CameronBaba's user avatar
0 votes
0 answers
73 views

Change SwiftData ModelContainer from a class to another and migration

I'm trying to change my model container class on a Movie application. Actually I've this : var sharedModelContainer: ModelContainer = { let schema = Schema([ LocalMovie.self, ]) ...
eltintin's user avatar
1 vote
0 answers
334 views

Creating SwiftData Model instances very slow

UPDATE: I used one of my "code-level support" tickets with Apple. Sent a test project along with test data. Their response "There is no workaround DTS can provide for Feedback ID #...
RyanTCB's user avatar
  • 7,994
-1 votes
1 answer
100 views

Is it possible to make strong reference cycles using SwiftData?

Almost on all tutorials I have seen of SwiftData they relate @Models between each others. Is it possible to make strong reference cycles using SwiftData? Or is it enough by marking them as @...
Fran's user avatar
  • 394
1 vote
1 answer
1k views

SwiftData model not updating

I have a problem with the SwiftData model not updating properly when changing some its child property's property. haha.. I know :) Let me provide some code samples so you can understand my problem. I ...
Robert Basamac's user avatar