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.