Skip to content

CloudKit macOS xcode16.2 b2

Alex Soto edited this page Nov 6, 2024 · 2 revisions

#CloudKit.framework

diff -ruN /Applications/Xcode_16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShare.h /Applications/Xcode_16.2.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShare.h
--- /Applications/Xcode_16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShare.h	2024-10-04 21:57:54
+++ /Applications/Xcode_16.2.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CKShare.h	2024-10-26 13:42:55
@@ -85,11 +85,14 @@
 @property (nullable, readonly, copy) CKShareParticipant *currentUserParticipant;
 
 /*! @discussion If a participant with a matching userIdentity already exists, then that existing participant's properties will be updated; no new participant will be added.
+ *  A `CKShareParticipant` instance that has already been added to one `CKShare` cannot be added to another, unless it is removed from the first `CKShare` through `removeParticipant`.
  *  In order to modify the list of participants, a share must have publicPermission set to @c CKShareParticipantPermissionNone.  That is, you cannot mix-and-match private users and public users in the same share.
- *  Only certain participant types may be added via this API
  *  @see CKShareParticipantRole
  */
 - (void)addParticipant:(CKShareParticipant *)participant;
+
+/*! @discussion It's not allowed to call `removeParticipant` on a `CKShare` with a `CKShareParticipant` that has never been added to that share through `addParticipant`.
+ */
 - (void)removeParticipant:(CKShareParticipant *)participant;
 
 /*! These superclass-provided initializers are not allowed for CKShare */

Clone this wiki locally