Skip Navigation

@Model for CoreData

www.alwaysrightinstitute.com @Model for CoreData

At WWDC 2023 Apple finally released a persistence framework specifically for Swift: SwiftData. My ManagedModels provides a similar API, on top of regular CoreData, and doesn’t require iOS 17+.

I've never been a big Core Data fan since it has cost me many days of my life debugging odd issues. To be fair, the issues weren't caused by Core Data. It was all of the foot-guns it left around that the junior developers on the team were more than happy to pick up and play with. This does look like an interesting use of macros though and is certainly a good example of how to craft more complex macros.

0
0 comments