I got the same problem. The only answer I found so far:
First fetch all shared record zones, because they have different names, than the zones in private database.
`let result = try await sharedDatabase.allRecordZones()
Then fetch records from this zones the usual way.
But my problem still remains, fetching all sharedZones delivers an empty array. But the sharing process was fine - at least I guess - it finally came to a sharing invitation, that could be accepted and triggered the SceneDelegate method ("userDidAcceptCloudKitShareWith").
CAN PLEASE ANYONE GIVE SOME ADVICE?
Topic:
App & System Services
SubTopic:
iCloud
Tags: