Class

CNContactFormatter

An object that defines the different formatting styles for contacts.

Declaration

class CNContactFormatter : Formatter

Overview

The CNContactFormatter class handles international ordering and delimiting for the contact name components. When formatting many contacts, create an instance of this class and use the instance methods; otherwise use the class methods.

Topics

Class Methods

Manual Formatting

class func delimiter(for: CNContact) -> String

Returns the delimiter to use between name components.

Styling

var style: CNContactFormatterStyle

The formatting style for the contact name.

Constants

enum CNContactFormatterStyle

The formatting styles for contact names.

enum CNContactDisplayNameOrder

The formatting orders for contact names component.

Relationships

Inherits From