Contents

addParticipant(_:)

Adds a participant to the share.

Declaration

func addParticipant(_ participant: CKShare.Participant)

Parameters

  • participant:

    The participant to add to the share.

Discussion

If a participant with a matching userIdentity already exists in the share, the system updates the existing participant’s properties and doesn’t add a new participant.

To modify the list of participants, a share’s publicPermission must be CKShare.ParticipantPermission.none. You can’t mix and match public and private users in the same share. You can only add certain participant types with this API. See CKShare.Participant for more information.

See Also

Configuring the Share