Skip to content

Instantly share code, notes, and snippets.

@cristibaluta
Last active April 23, 2017 12:03
Show Gist options
  • Save cristibaluta/67df69c4c32b4fae65ad4a547d195e80 to your computer and use it in GitHub Desktop.
Save cristibaluta/67df69c4c32b4fae65ad4a547d195e80 to your computer and use it in GitHub Desktop.
class CloudKitRepository {
internal let privateDB = CKContainer.default().privateCloudDatabase
internal let customZone = CKRecordZone(zoneName: "TasksZone")
init() {
privateDB.save(customZone) { (recordZone, err) in
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment