Lots of people have struggled to understand the behavior of SwiftData's ModelActor. I had the chance to look into it!
(And also get to use it as an excuse to get into isolated parameters and the sending keyword.)
ModelActor is Just Weird
I actually don’t get too many questions about SwiftData or Core Data. And thank goodness, because I’m not particularly familiar with either. That is, until just recently! I had the chance to work with two different projects, both of which were using SwiftData. While Core Data was introduced in 2005, this SwiftData stuff is brand new. In fact, it includes a whole bunch of Concurrency-specific features. It should be smooth sailing right?
www.massicotte.org · massicotte.org
Link author:
Matt Massicotte@mattiem@mastodon.social