---
title: "string(from:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cncontactformatter/string(from:)"
---

# string(from:)

Formats the contact name.

## Declaration

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

## Parameters

- `contact`: The contact whose name is to be formatted.

## Return Value

Return Value The formatted contact name.

## See Also

### Creating a formatted string

- [string(from:style:)](contacts/cncontactformatter/string(from:style:).md)
