Instance Method


Adds a group to the contact store.


func add(_ group: CNMutableGroup, toContainerWithIdentifier identifier: String?)



The group to add.


The identifier of the container to add the new group. To add the new group to the default container, set identifier to nil.


This method overrides any previously made delete request for the group.

See Also

Saving Group Changes

func update(CNMutableGroup)

Updates an existing group in the contact store.

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