SwiftData does not support aggregate functions like SUM, AVG, or COUNT.
You have to fetch your models and then use Swift’s map, reduce, and filter to compute totals, averages, and more.
#swiftdata
After the success of the SwiftUI Architecture book, I have already begun working on the SwiftData Architecture book.
No release date is available at this time.
#swiftdata#swiftui
SwiftData is quietly replacing Core Data in 2026. Simpler models, automatic iCloud sync, and native SwiftUI bindings — persistence finally feels modern. If you're still fighting NSManagedObjectContext, it's time to migrate. #SwiftData#iOSDev#SwiftUI
Working on #SwiftData book and looking into some of the limitations of SwiftData Queries.
1. Boolean properties cannot be used in sorting... in Queries.
The SwiftUI Architecture book just crossed 100+ copies sold.
No publisher.
No launch team.
No marketing machine.
Just iOS developers who care about building scalable apps the right way.
Grateful for the support 🙏
azamsharp.school/swiftui-archit…#iosdev#swiftui#swiftdataw
When working with SwiftData or Core Data, always make sure to enable SQLDebug flag in launch arguments. This will allow you to see the SQL behind each of your SwiftData operation.
#swiftdata
PS: I am presenting a free 2 hour session on SwiftData. Register here: youtube.com/live/dO8BN8j9r…