---
title: CNPostalAddressPropertyAttribute
framework: contacts
role: symbol
role_heading: Global Variable
path: contacts/cnpostaladdresspropertyattribute
---

# CNPostalAddressPropertyAttribute

An attribute that identifies the purpose of a range of characters in an attributed string.

## Declaration

```swift
let CNPostalAddressPropertyAttribute: String
```

## Discussion

Discussion The value of this key is a string constant that specifies the meaning of the range of characters. For example, the value is CNPostalAddressCityKey when the characters specify the city portion of the address.

## See Also

### Generating a formatted attributed string

- [attributedString(from:withDefaultAttributes:)](contacts/cnpostaladdressformatter/attributedstring(from:withdefaultattributes:).md)
- [attributedString(from:style:withDefaultAttributes:)](contacts/cnpostaladdressformatter/attributedstring(from:style:withdefaultattributes:).md)
- [CNPostalAddressLocalizedPropertyNameAttribute](contacts/cnpostaladdresslocalizedpropertynameattribute.md)
