An object you use to convert to and from a vCard representation of the user's contacts.


class CNContactVCardSerialization : NSObject


Extracting Contacts from a vCard

class func contacts(with: Data) -> [CNContact]

Returns the contacts from the vCard data.

Getting a vCard for Contacts

class func data(with: [CNContact]) -> Data

Returns the vCard representation of the specified contacts.

Getting a Descriptor

class func descriptorForRequiredKeys() -> CNKeyDescriptor

Use to fetch all contact keys required to create vCard data from a contact.


Inherits From

Conforms To

See Also


class CNContactFormatter

An object that you use to format contact information before displaying it to the user.

class CNPostalAddressFormatter

An object that you use to format a contact's postal addresses.

class CNContactsUserDefaults

An object that defines the default options to use when displaying contacts.

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