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.