Contents

init(rootRecord:shareID:)

Creates a new share for the specified record and record ID.

Declaration

init(rootRecord: CKRecord, shareID: CKRecord.ID)

Parameters

  • rootRecord:

    The record to share.

  • shareID:

    The Id for the share.

Discussion

When saving a newly created CKShare, you save both the share and its rootRecord in the same CKModifyRecordsOperation batch.

See Also

Creating a Share