add(_:toContainerWithIdentifier:)
Adds the specified contact to the contact store.
Declaration
func add(_ contact: CNMutableContact, toContainerWithIdentifier identifier: String?)Parameters
- contact:
The new contact to add.
- identifier:
The identifier of the container to add the new contact. To add the new contact to the default container set
identifiertonil.
Discussion
This method overrides any previously made deletion requests for the contact. The new contact may be modified by executing the save request.