<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DataDetection",
  "identifier" : "/documentation/DataDetection/DataDetector/MatchType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DataDetection"
    ],
    "preciseIdentifier" : "s:13DataDetection0A8DetectorO9MatchTypeV"
  },
  "title" : "DataDetector.MatchType"
}
-->

# DataDetector.MatchType

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

```
struct MatchType
```

## Discussion

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

## Topics

### Supported match types

[`static let all: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/all)

A set of types that includes all publicly useable types.

[`static let calendarEvent: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/calendarEvent)

The type that represents calendar events, such as dates and times, or date and time ranges.

[`static let emailAddress: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/emailAddress)

The type that represents email addresses.

[`static let flightNumber: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/flightNumber)

The type that represents flight numbers.

[`static let link: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/link)

The type that represents links, not limited to web links.

[`static let measurement: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/measurement)

The type that represents measurements, such as distances and weights.

[`static let moneyAmount: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/moneyAmount)

The type that represents monetary amounts.

[`static let paymentIdentifier: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/paymentIdentifier)

The type that represents payment identifiers, such as Universal Payments Interface (UPI) identifiers.

[`static let phoneNumber: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/phoneNumber)

The type that represents phone numbers.

[`static let postalAddress: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/postalAddress)

The type that represents postal addresses.

[`static let shipmentTrackingNumber: DataDetector.MatchType`](/documentation/DataDetection/DataDetector/MatchType/shipmentTrackingNumber)

The type that represents shipment tracking numbers.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

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

---

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)