caiyue1993 / IceCream

Sync Realm Database with CloudKit
MIT License
1.93k stars 243 forks source link

请教一下,当我同时需要同步私有库和公共库的时候,应该用哪种写法呢? #255

Closed DLsunset closed 2 years ago

DLsunset commented 2 years ago

1642038285529 1642038319624 这两种哪个是正确的呢?还是都不正确?

caiyue1993 commented 2 years ago

Hi @DLsunset, the second one is the preferred way and the first one won't work as you expected. However, I suggest you put private/public model into different Realms and pass Realm configurations into the SyncObject initializer. I'll produce a detailed usage in the README later. Thank you!