UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

iCloud - Understanding how it works and scheme to use

Forums > Server-side Swift

Hi All,

I am part way through developing a reminder type app, it's a fairly simple app that loads into a foreach list of items in an array and so far I have got all the essentials sorted and I have moved on to iCloud now.

I have it working and syncing as needed, however I am struggling to understand why when I request all records in the public database in the development scheme I am given literally all of the records even though they are created using a different development Apple ID (I had problems logging into the sim with my personal one) and I'm wondering is this just development behaviour or should I assign an owner tag to filter by?

I was under the assumption that each record was given a unique id tied to the device/iCloud account and only that information would be available, but now I'm wondering if I am coding my query incorrectly or is this default behaviour for the development scheme to allow full testing, I don't want to assume anything when the time comes to move to the production scheme.

Any guidance or help on exactly how iCloud works would be greatly appreciated!

4      

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.