RCCloudKit
A simple lib to sync CoreData to CloudKit
Install / Use
/learn @cristibaluta/RCCloudKitREADME
RCCloudKit
A simple lib to sync CoreData to CloudKit
Usage
cloudkit = RCCloudKit(moc:context, identifier:@"iCloud.com....", zoneName:@"SomeZoneName")
sync = RCCloudKitSynchronizer(moc:context, ck:cloudkit)
cloudkit.didCreateZone = {
sync.start { containsChanges in
}
}
Requirements
The CoreData entities must contain this fields:
- date: Date
- recordId: CKRecord
- recordName: String (Noticed bugs where the fetch from CoreData was not working with the recordId)
- markedForDeletion: Bool = false by default
If this does not satisfy you, you can create your own dataSource and delegate and use different logic.
How it works
CoreData objects are saved to CloudKit automatically after you save the main context. Aditionally you can start the sync manually after you are sure the zone was created.
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
