Initializer

init(rootRecord:)

Initializes and returns a share object.

Declaration

convenience init(rootRecord: CKRecord)

Parameters

rootRecord

The record that is being shared.

Return Value

An initialized share object.

Discussion

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

See Also

Creating a Share

init(coder: NSCoder)

Initializes and returns a share object.

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

Initializes and returns a share object.