Skip to content

Commit

Permalink
added zoneID for references
Browse files Browse the repository at this point in the history
  • Loading branch information
HasanKassem committed Aug 26, 2020
1 parent 0a0f1c4 commit 2c33db6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion Source/Classes/Encoder/CKEncoderKeyedContainer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ extension CKEncoderKeyedContainer: KeyedEncodingContainerProtocol {
}

private func produceReference(for value: CKEncodable) throws -> CKRecord.Reference {
let recordID = CKRecord.ID(recordName: value.cloudKitIdentifier)
let recordID = CKRecord.ID(recordName: value.cloudKitIdentifier, zoneID: zoneID ?? .default)
return CKRecord.Reference(recordID: recordID, action: .deleteSelf)
}

Expand Down

0 comments on commit 2c33db6

Please sign in to comment.