---
title: DataDetector.Match
framework: datadetection
role: symbol
role_heading: Structure
path: datadetection/datadetector/match
---

# DataDetector.Match

A representation of a match that includes common properties and an enumeration that represents the match type and its specific semantic components.

## Declaration

```swift
struct Match
```

## Topics

### Match details

- [details](datadetection/datadetector/match/details.md)
- [preferredHighlightStyle](datadetection/datadetector/match/preferredhighlightstyle.md)
- [range](datadetection/datadetector/match/range.md)

### Values that describe highlighting and semantic details of matches

- [DataDetector.Match.HighlightStyle](datadetection/datadetector/match/highlightstyle.md)
- [DataDetector.Match.SemanticDetails](datadetection/datadetector/match/semanticdetails.md)

### Initializers

- [init(originalRange:range:preferredHighlightStyle:details:)](datadetection/datadetector/match/init(originalrange:range:preferredhighlightstyle:details:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Structures

- [DataDetector.MatchType](datadetection/datadetector/matchtype.md)
- [DataDetector.Options](datadetection/datadetector/options.md)
