Skip to content

Extends SwiftData to better interoperate with CoreData and Persistent History Tracking.

License

Notifications You must be signed in to change notification settings

simonnickel/snap-swift-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package is part of the SNAP suite.

// TODO: Checkout WWDC24 changes to SwiftData regarding history tracking.

SnapSwiftData

This package improves interoperability between SwiftData and CoreData. It provides SwiftData with access to CoreData objects and Persistent History Tracking.

SwiftData is build on CoreData, but does not completely cover its functionality. SnapSwiftData tries to fill some gaps, so you do not need to create a duplicated CoreData stack.

The package is heavily inspired by https://github.com/fatbobman/SwiftDataKit

Documentation

Features

Disclaimer

The implementation relies on current CoreData / SwiftData implementation details. This means it might break with future versions of SwiftData. Please use carefully.

Nothing in this package should not be necessary at all and be supported by SwiftData (FB13577205).

Good to know

Add to launch arguments to silence CloudKit logs (see https://useyourloaf.com/blog/disabling-core-data-cloudkit-logging/):

-com.apple.CoreData.Logging.stderr 0

About

Extends SwiftData to better interoperate with CoreData and Persistent History Tracking.

Topics

Resources

License

Stars

Watchers

Forks

Languages