Is SwiftData built on top of CoreData?

Generated on 8/1/2024

1 search

Yes, SwiftData is built on top of CoreData by default. According to the Platforms State of the Union, SwiftData uses CoreData to store information by default, but it also allows for custom data stores, enabling the use of alternative backends like SQLite, a remote web service, or even a collection of JSON files. This flexibility allows developers to use SwiftData's API with various storage solutions.