---
title: "init(displayName:handles:handleIdentifier:)"
framework: corespotlight
role: symbol
role_heading: Initializer
path: "corespotlight/csperson/init(displayname:handles:handleidentifier:)"
---

# init(displayName:handles:handleIdentifier:)

Returns a new CSPerson object initialized with the specified display name and contact attributes.

## Declaration

```swift
init(displayName: String?, handles: [String], handleIdentifier: String)
```

## Parameters

- `displayName`: The name of the person in a user-displayable string.
- `handles`: An array of contact handles, such as phone number or email address.
- `handleIdentifier`: A property key that specifies a handle type, such as doc://com.apple.documentation/documentation/Contacts/CNContactEmailAddressesKey.

## Return Value

Return Value An initialized person object that represents a user’s contact.

## See Also

### Initializing a person object

- [init(coder:)](corespotlight/csperson/init(coder:).md)
