Type Method

string(from:style:)

Returns the contact name, formatted with the specified formatter.

Declaration

class func string(from contact: CNContact, style: CNContactFormatterStyle) -> String?

Parameters

contact

The contact whose name is to be formatted.

style

The formatting style to be used for the contact name.

Return Value

The formatted contact name.

See Also

Creating a Formatted String

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