Instance Method

update(_:)

Updates an existing group in the contact store.

Declaration

func update(_ group: CNMutableGroup)

Parameters

group

The group to update.

Discussion

The group to be updated must already exist in the contact store. If it does not, the update request fails, the CNErrorCodeRecordDoesNotExist error is thrown, and the CNErrorUserInfoAffectedRecordsKey array is updated to contain that object.

See Also

Saving Group Changes

func delete(CNMutableGroup)

Deletes a group from the contact store.

func addMember(CNContact, to: CNGroup)

Adds a contact as a member of a group.

func removeMember(CNContact, from: CNGroup)

Removes a contact as a member of a group.

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