Class

CKShare

A reference to a shared record.

Declaration

class CKShare : CKRecord

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software