---
title: DDMatch
framework: datadetection
role: symbol
role_heading: Class
path: datadetection/ddmatch
---

# DDMatch

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

## Declaration

```swift
class DDMatch
```

## Overview

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](datadetection/ddmatch/matchedstring.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [DDMatchCalendarEvent](datadetection/ddmatchcalendarevent.md)
- [DDMatchEmailAddress](datadetection/ddmatchemailaddress.md)
- [DDMatchFlightNumber](datadetection/ddmatchflightnumber.md)
- [DDMatchLink](datadetection/ddmatchlink.md)
- [DDMatchMoneyAmount](datadetection/ddmatchmoneyamount.md)
- [DDMatchPhoneNumber](datadetection/ddmatchphonenumber.md)
- [DDMatchPostalAddress](datadetection/ddmatchpostaladdress.md)
- [DDMatchShipmentTrackingNumber](datadetection/ddmatchshipmenttrackingnumber.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Matched strings

- [DataDetector](datadetection/datadetector.md)
