---
title: "init(stringValue:)"
framework: contacts
role: symbol
role_heading: Initializer
path: "contacts/cnphonenumber/init(stringvalue:)"
---

# init(stringValue:)

Returns a new phone number object initialized with the specified phone number string.

## Declaration

```swift
init(stringValue string: String)
```

## Parameters

- `string`: A string value with which to initializes the phone number object.

## Return Value

Return Value A newly initialized phone number object. Discussion You should initialize this with a phone number string. This method returns nil when the value of string is nil.
