Added func documentation

This commit is contained in:
Maurice Parker 2020-04-26 02:28:19 -05:00
parent 4c499c2e98
commit 5de778f82c
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,7 @@ extension CloudKitZone {
}
}
/// Creates the zone record
func createZoneRecord(completion: @escaping (Result<Void, Error>) -> Void) {
guard let database = database else {
completion(.failure(CloudKitZoneError.unknown))
@ -106,6 +107,7 @@ extension CloudKitZone {
}
}
/// Subscribes to zone changes
func subscribeToZoneChanges() {
let subscription = CKRecordZoneSubscription(zoneID: Self.zoneID)
@ -371,6 +373,7 @@ extension CloudKitZone {
modify(recordsToSave: [], recordIDsToDelete: [recordID], completion: completion)
}
/// Delete CKRecords
func delete(recordIDs: [CKRecord.ID], completion: @escaping (Result<Void, Error>) -> Void) {
modify(recordsToSave: [], recordIDsToDelete: recordIDs, completion: completion)
}