<!--
{
  "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/DDMatch",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "DataDetection"
    ],
    "preciseIdentifier" : "c:objc(cs)DDMatch"
  },
  "title" : "DDMatch"
}
-->

# DDMatch

A base class for common types of data that the data detection system matches.

```
class DDMatch
```

## Overview

The DataDetection framework returns results in objects that are subclasses of `DDMatch`, which are specific to the type of matching data. Each object contains the matched string.

## Topics

### Getting matches

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

A substring that the data detection system identifies from an original string as a common type of data.

## Relationships

### Inherited By

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

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

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

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

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

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

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

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

### Conforms To

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

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

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

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

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

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

### 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)