Type Method

descriptorForRequiredKeys(for:)

Returns the required key descriptor for the specified formatting style of the contact.

Declaration

class func descriptorForRequiredKeys(for style: CNContactFormatterStyle) -> CNKeyDescriptor

Parameters

style

The formatting style to be used for contact name.

Return Value

The contact key descriptor for the formatting style.

Discussion

Include this method with the keys to fetch when fetching contacts. To format multiple styles, you can include multiple key descriptors with the keys to fetch.