Swiftpack.co - flowtoolz/CloudKid as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by flowtoolz.
flowtoolz/CloudKid 0.1.0
Lift your code above the harsh realities of CloudKit. Swift and easy.
⭐️ 3
🕓 1 week ago
iOS macOS tvOS
.package(url: "https://github.com/flowtoolz/CloudKid.git", from: "0.1.0")


CloudKid simplifies basic uses of CloudKit:

  • Ensuring iCloud account access
  • Fetching records
  • Fetching changes
  • Saving records
  • Querying for records
  • Creating zones and subscription
  • Responding to database notifications
  • Resolving data conflicts


CloudKid abstracts away the technical details of CloudKit:

  • Local caching of CKRecordobjects for recommended conflict resolution approach via saving
  • Using proper CloudKit operations for everything, no CloudKit convenience methods internally
  • Providing meaningful result types for CKModifyRecordsOperation
  • Handling partial CloudKit errors
  • Splitting batch operations into batches of acceptable size
  • Transforming errors of type CKError into readable errors that can be displayed
  • Providing a meaningful result type for change fetches
  • Detecting save conflicts and providing a meaningful conflict type for conflict resolution
  • Producing a timeout error in case CloudKit operations don't respond


Stars: 3
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics