---
title: CNPhoneNumber
framework: contacts
role: symbol
role_heading: Class
path: contacts/cnphonenumber
---

# CNPhoneNumber

An immutable object representing a phone number for a contact.

## Declaration

```swift
class CNPhoneNumber
```

## Overview

Overview CNPhoneNumber objects are thread-safe, and you may access their properties from any thread of your app.

## Topics

### Creating a Phone Number Object

- [init(stringValue:)](contacts/cnphonenumber/init(stringvalue:).md)

### Getting the Phone Number

- [stringValue](contacts/cnphonenumber/stringvalue.md)

### Getting Phone-Related Keys

- [CNContactPhoneNumbersKey](contacts/cncontactphonenumberskey.md)

### Deprecated

- [init()](contacts/cnphonenumber/init().md)
- [new()](contacts/cnphonenumber/new().md)

### Initializers

- [init(coder:)](contacts/cnphonenumber/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
