Formats the contact name as an attributed string.
- iOS 9.0+
- macOS 10.11+
- watchOS 2.0+
The contact whose name is to be formatted.
The default attributes to use. For more information, see
The formatted contact name as an attributed string.
This method behaves similarly to
string(from:, except that it returns an attributed string. It includes the attribute key
CNContact whose attribute values are contact property keys, such as
CNContact. This identifies the name components in the formatted contact name.