---
title: "string(from:style:)"
framework: contacts
role: symbol
role_heading: Type Method
path: "contacts/cnpostaladdressformatter/string(from:style:)"
---

# string(from:style:)

Returns a postal address as a string and formatted for the specified style.

## Declaration

```swift
class func string(from postalAddress: CNPostalAddress, style: CNPostalAddressFormatterStyle) -> String
```

## Parameters

- `postalAddress`: The postal address to format.
- `style`: The postal formatting style to use. For a list of possible values, see doc://com.apple.contacts/documentation/Contacts/CNPostalAddressFormatterStyle.

## Return Value

Return Value The formatted postal address.

## See Also

### Generating a formatted string

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