What is the correct way for a user B to remove himself from a shared record owned by user A? I think I remember from some of the WWDC videos that user B would just delete the CKShare
from his shared db, but it seems that the user will still remain a participant when looking at the permissions with user A's device. And, user B can "rejoin" by using the original link used to receive the record the first time.
Probably long forgotten, but I found this while looking for the same information (very few detailed articles about CKShares...).
Deleting the share seems to be the only way if you are not the share owner. User B remains, but his status changes to not determined.
Trying to remove the currentUserParticipant
from the CKShare results in the following exception:
Terminating app due to uncaught exception 'CKException', reason: 'You cannot remove yourself as a participant on the share. Delete the share instead if you want out.'
Only the owner can add/remove participants to the share.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With