Introduction
Introduced in iOS 17 back at WWDC 2023, SwiftData finally provided a “Swift-y” way to work with database persistence in Swift apps. While it still uses Core Data on the backend, the API is greatly improved, taking advantage of Swift Macros also released in 2023.
Before diving into what’s new with SwiftData from WWDC 2025, you’ll get a quick refresher on how to:
- Build models with SwiftData, taking advantage of Swift Macros
- Perform queries using the
@Querymacro - Insert data
By the end of the lesson, your brain will be primed to learn about improvements to SwiftData in 2026 Apple operating systems.