<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DataDetection",
  "identifier" : "/documentation/DataDetection/DDMatchPhoneNumber",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "DataDetection"
    ],
    "preciseIdentifier" : "c:objc(cs)DDMatchPhoneNumber"
  },
  "title" : "DDMatchPhoneNumber"
}
-->

# DDMatchPhoneNumber

An object that contains a phone number that the data detection system matches.

```
class DDMatchPhoneNumber
```

## Overview

The DataDetection framework returns a phone number match in a `DDMatchPhoneNumber` object, which contains a phone number, and optionally a label that categorizes the phone number.

## Topics

### Getting phone information

[`phoneNumber`](/documentation/DataDetection/DDMatchPhoneNumber/phoneNumber)

A string that represents a phone number.

[`label`](/documentation/DataDetection/DDMatchPhoneNumber/label)

A string that categorizes a phone number, such as Home or Work.

## Relationships

### Inherits From

[`DDMatch`](/documentation/DataDetection/DDMatch)

### Conforms To

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

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

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

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

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

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

---

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)