share
A reference to the share object that determines the share status of the record.
Declaration
@NSCopying var share: CKRecord.Reference? { get }Discussion
CloudKit clears this property’s value when it deletes the corresponding CKShare object on the server. Send this record in the same batch operation as the share object you’re deleting, and this property updates accordingly.
CloudKit only supports sharing in zones with the CKRecordZoneCapabilitySharing capability. The default zone doesn’t support sharing.
If any records have a parent reference to this record, CloudKit implicitly shares them along with this record.