If you're building iOS apps in 2025 using SwiftUI, you’ve probably asked yourself:
How should I save my data?
Should you use @AppStorage
? @SceneStorage
? What about SwiftData? Is Core Data still relevant?
To save you from endless guessing (and context loss between WWDC sessions), I’ve written a full breakdown of all your data persistence options in SwiftUI, with working code examples and updated info from WWDC 2025.
👇 Here’s what you’ll learn:
- When to use
@AppStorage
vs@SceneStorage
- Full CRUD in SwiftData (
insert
,fetch
,update
,delete
) - Custom filtering with
#Predicate
andFetchDescriptor
- WWDC 2025 SwiftData upgrades (model inheritance, Codable filters, persistent history)
- Core Data setup for legacy apps, including the full CRUD workflow in one block
- How to choose the right tool for your use case (cheat sheet included)
📖 Read the full guide:
SwiftUI Data Persistence in 2025 — SwiftData, Core Data, AppStorage & SceneStorage Explained
If you find it helpful, a ❤️ or share is appreciated.
Also curious: are you using SwiftData in production yet — or still on Core Data?
Top comments (0)