Instance Method

string(from:)

Formats the contact name.

Declaration

func string(from contact: CNContact) -> String?

Parameters

contact

The contact whose name is to be formatted.

Return Value

The formatted contact name.

See Also

Creating a Formatted String

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

Returns the contact name, formatted with the specified formatter.

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