<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSPerson",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Spotlight"
    ],
    "preciseIdentifier" : "c:objc(cs)CSPerson"
  },
  "title" : "CSPerson"
}
-->

# CSPerson

An object that represents a person in the context of search results.

```
class CSPerson
```

## Overview

A `CSPerson` object represents a person in the context of search results. You can create a `CSPerson` object when you have a display name and a contact handle of some kind, such as an email address or phone number.

If you create a `CSPerson` object to represent a specific contact, you can use the value of the contact’s identifier property for the person object’s [`contactIdentifier`](/documentation/CoreSpotlight/CSPerson/contactIdentifier) property. Using the same value lets you avoid using names or phone numbers to look up the contact that’s associated with a person.

## Topics

### Initializing a person object

[`-  initWithDisplayName:handles:handleIdentifier:`](/documentation/CoreSpotlight/CSPerson/init(displayName:handles:handleIdentifier:))

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

[`init(coder:)`](/documentation/CoreSpotlight/CSPerson/init(coder:))

### Accessing person properties

[`contactIdentifier`](/documentation/CoreSpotlight/CSPerson/contactIdentifier)

The identifier for the contact associated with the person.

[`displayName`](/documentation/CoreSpotlight/CSPerson/displayName)

A display name for the person.

[`handleIdentifier`](/documentation/CoreSpotlight/CSPerson/handleIdentifier)

A key that identifies the type of contact property represented by the person object’s handle.

[`handles`](/documentation/CoreSpotlight/CSPerson/handles)

An array of contact handles related to the person.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSCoding`](/documentation/Foundation/NSCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)