why does SwftData suck ass?

Asked on 03/20/2025

1 search

It seems like you have some concerns about SwiftData. While I can't address subjective opinions, I can provide some insights into what was presented about SwiftData at WWDC 2024.

SwiftData is a framework designed to simplify building your app's model layer and persisting data across app launches. It offers features like schema modeling, migration, graph management, and synchronization with CloudKit. Some of the key updates and features highlighted include:

  • Modeling and Persistence: SwiftData allows you to define your schema using Swift language features like macros, making it easy to model and persist data.
  • Custom Data Stores: You can now use custom data stores, allowing you to store data using backends like SQLite or a remote web service.
  • History API: This feature provides access to the history of changes in a datastore, useful for tracking local changes that need to be synced to a remote service.
  • Performance Optimization: New macros and query optimizations have been introduced to improve performance.

For more detailed information, you can check out the session What’s new in SwiftData (00:57) which covers the adoption of SwiftData and its new features.