From 2c33db6dd6f01f7ef06e7b72cdcdf8d7fbda5073 Mon Sep 17 00:00:00 2001 From: Hasan Kassem Date: Wed, 26 Aug 2020 12:14:35 +0300 Subject: [PATCH] added zoneID for references --- .DS_Store | Bin 0 -> 12292 bytes .../Encoder/CKEncoderKeyedContainer.swift | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ac5311af6d675d21289285702efddfa0e6150c7b GIT binary patch literal 12292 zcmeHNy=xRv5TA{A=0rgSB`Am&u#gnd1S@SW$(`W0cmZw1m`gMtce&#dHK0YXQ5z9# z1Pi}FND-{;#YX=EZByC`f`x_t=Dp3{%-)@5_f`>o3vXw4-^}dnZ{Eke*+)d)@U@8n zqWwgaL1DUW3r=^4vYSE0!S!64jtzL?p&UiQ^){k;TA)dqpb;uJaW_Bc!XuVXq3ov9 zkd*ROx&}=rXc{_4sEX^$G!DI!bP87`Izz=uHJ=|ZSH~fr8CZEXf8gfZA-dp=UhroZ00FMt@ z6s9?!E?H`Z4xBiI=Xws|&4FvI1I)9mPjfz9vebw|#)yJiQO{pucvc+Gv&;^f^XZbM zR-8O5PM-f}&tIW<=IxNn8g}w>mb$Y;z#-6#05AMwuDvH(t-WLEQfqVXEL#~x�d{ zm_Jsomi&AGh5@e!CG*`J=EGy@EMFCQ1KRjLu5B_`@$q$#tB7S&rP{#0Q(X#sJLv9; zkc%0m>zs+v$kP!ZzbKH8p;6=Bdl9(D&>~S!4L)DX3dPdYz`Qd}3URN-O*2X>IFIbt z0`gx|Aw# zj8vb*NVP?CBYRwibctp|a@^ab+$K7Q7BNJ5WTy*|s?da%FzrD~Y@{Mhp)c1tW3GAG zs;&#dD#fe)-}e>%SM}0|uRa7m4DmGl(2hr830VC1a9+L+M8Ze{ktUl1UTyQ!mtkGf z=0l&A&4CU%4z%M@HhW`ibDDkMClJ_!mjwUF)vT9Vxi9PFoY(6Ax}5P^)vNg~y~^L#O(*FX{_PhKffuRJ z90SpQ5d&=v#px&Xu7HpdPsO>;e7aeG-pbgTZ?Kmr{+mYyDCRI~yzP457hM zYMcEM8X1m56*3VtX_SUoQv_*=*yDQvVv#g7(2J)*Bl#2`Kzr7YB;xv-Sxd}=PEtuD zOWfuji59yzlIBIk)V#}O61wZSn$g;g-xAcWeCa)W0NXpXSNiw%@xZ?wYi;;EIjyQ4 zcyI9W)En7bH{hi@&0_suGdq&PDO;0?-abofg$c1zDK_dLGi@1sh5j=Rw~3iSA9H6Ml0C2rh7Jz z8>*ee(y3drHb!JGiaC$`2T;Q{r*40Erf3c4`*;(4n M|E>0|{|)p15B+Ac;Q#;t literal 0 HcmV?d00001 diff --git a/Source/Classes/Encoder/CKEncoderKeyedContainer.swift b/Source/Classes/Encoder/CKEncoderKeyedContainer.swift index b85f8f2..c0624e2 100644 --- a/Source/Classes/Encoder/CKEncoderKeyedContainer.swift +++ b/Source/Classes/Encoder/CKEncoderKeyedContainer.swift @@ -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) }