---
title: DataDetector.MatchType
framework: datadetection
role: symbol
role_heading: Structure
path: datadetection/datadetector/matchtype
---

# DataDetector.MatchType

A set of types of matches that the system can find in a string.

## Declaration

```swift
struct MatchType
```

## Discussion

Discussion note: The framework may either not support or only partially support some types in certain languages.

## Topics

### Supported match types

- [all](datadetection/datadetector/matchtype/all.md)
- [calendarEvent](datadetection/datadetector/matchtype/calendarevent.md)
- [emailAddress](datadetection/datadetector/matchtype/emailaddress.md)
- [flightNumber](datadetection/datadetector/matchtype/flightnumber.md)
- [link](datadetection/datadetector/matchtype/link.md)
- [measurement](datadetection/datadetector/matchtype/measurement.md)
- [moneyAmount](datadetection/datadetector/matchtype/moneyamount.md)
- [paymentIdentifier](datadetection/datadetector/matchtype/paymentidentifier.md)
- [phoneNumber](datadetection/datadetector/matchtype/phonenumber.md)
- [postalAddress](datadetection/datadetector/matchtype/postaladdress.md)
- [shipmentTrackingNumber](datadetection/datadetector/matchtype/shipmenttrackingnumber.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [Hashable](swift/hashable.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Structures

- [DataDetector.Match](datadetection/datadetector/match.md)
- [DataDetector.Options](datadetection/datadetector/options.md)
