A collection of utilities for building Core Data applications in SwiftUI.
This library is still very much a WIP as I study some of the new best practices, patterns, and affordances for Core Data after the release of SwiftUI 2.0. Please treat it as a guideline/reference for the time being 🙂.
CoreDataManagerthat handles setting up your "Core Data Stack".
rich set of utilitiesfor performing Core Data migrations.
FetchedResultsControllingprotocol that helps architect
NSFetchedResultsControllerinstances and extract data from their
NSPersistentStorehelpers for using
NSSQLiteStoreTypein production apps and
NSInMemoryStoreTypein tests or previews:
Swift Packages ->
Add Package Dependency and enter
You can add
CypherPoetCoreDataKit as a package dependency in your
let package = Package( //... dependencies: [ .package(url: "https://github.com/CypherPoet/CypherPoetCoreDataKit", .exact("0.0.17")), ], //... )
From there, refer to
CypherPoetCoreDataKit as a "target dependency" in any of your package's targets that need it.
targets: [ .target( name: "YourLibrary", dependencies: [ "CypherPoetCoreDataKit", ], ... ), ... ]
import CypherPoetCoreDataKit wherever you’d like to use it.
Currently, usage of these utilities is best demonstrated by the various example applications here. But a few pointers...
CypherPoetCoreDataKit are most welcome. Check out some of the issue templates for more info.
📝 Note that this will only generate the
docs folder for you to view locally. This folder is being ignored by
git, as an action exists to automatically generate docs and serve them on the project's
CypherPoetCoreDataKit is available under the MIT license. See the LICENSE file for more info.
|Last commit: 2 weeks ago|