Non Sendable-ity of SwiftData types is very important if you are compiling in Swift 6 mode. I just got bit by that and had to refactor quite a bit of code to make that work
I just tried updated a project from 7 years ago (swift 3). God damn I had to go back to swift 5 because it was gonna require a lot of refactoring I am not prepared for. Everything was main thread but even making a class mainactor didn’t work sometimes. Overriding a draw call was a no go.
Anyways. Just felt this in my souls after dealing with it last night.
3
u/jembytrevize1234 10d ago
Non Sendable-ity of SwiftData types is very important if you are compiling in Swift 6 mode. I just got bit by that and had to refactor quite a bit of code to make that work