Class

CKShare

A reference to a shared record.

Topics

Creating a Share

init(coder: NSCoder)

Initializes and returns a share object.

init(rootRecord: CKRecord)

Initializes and returns a share object.

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

Initializes and returns a share object.

Configuring the Share Object

var publicPermission: CKShare_Participant_Permission

Definition of permissions new users joining this share will have initially.

func addParticipant(CKShare.Participant)

Adds a participant to this share.

func removeParticipant(CKShare.Participant)

Removes a participant from the share.

Accessing the Share Metadata

var url: URL?

A URL that can be used to invite participants to this share.

var currentUserParticipant: CKShare.Participant?

The current user’s metadata for this share.

var owner: CKShare.Participant

The share owner’s metadata.

var participants: [CKShare.Participant]

An array containing metadata objects for all participants in this share.

Classes

class CKShare.Metadata

A reference to the metadata for a shared record.

class CKShare.Participant

A reference to a person who accepted a shared record.

Relationships

Inherits From

See Also

Shared Content

class CKShare.Metadata

A reference to the metadata for a shared record.

class CKShare.Participant

A reference to a person who accepted a shared record.

Share Operations

Operations are used to communicate shared information with CloudKit.