DataStore
An interface that enables SwiftData to read and write model data without knowledge of the underlying storage mechanism.
Declaration
protocol DataStore : AnyObjectTopics
Creating a data store
Accessing store information
Processing fetch requests
fetch(_:)DataStoreFetchRequestDataStoreFetchResultSnapshotDataStoreSnapshotDataStoreSnapshotValuefetchCount(_:)fetchIdentifiers(_:)