to determine if a user is signed into iCloud, use CKContainer.accountStatus { … }
https://developer.apple.com/documentation/cloudkit/ckcontainer/1399180-accountstatuswithcompletionhandl
Going further, record types in CloudKit can have various read and write permissions using security roles. CloudKit Security Roles are not well documented. See this thread for more https://stackoverflow.com/questions/31369181/how-do-the-cloudkit-security-roles-and-permissions-work
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: