<!--
{
  "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/Match",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "DataDetection"
    ],
    "preciseIdentifier" : "s:13DataDetection0A8DetectorO5MatchV"
  },
  "title" : "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.

```
struct Match
```

## Topics

### Match details

[`let details: DataDetector.Match.SemanticDetails`](/documentation/DataDetection/DataDetector/Match/details)

A property that contains the type and semantic data found in a match.

[`let preferredHighlightStyle: DataDetector.Match.HighlightStyle`](/documentation/DataDetection/DataDetector/Match/preferredHighlightStyle)

A value that suggests a highlight style for a match.

[`let range: Range<String.Index>?`](/documentation/DataDetection/DataDetector/Match/range)

The range of characters in the original text corresponding to the match.

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

[`enum HighlightStyle`](/documentation/DataDetection/DataDetector/Match/HighlightStyle)

Values that suggest how to style a highlighted item.

[`enum SemanticDetails`](/documentation/DataDetection/DataDetector/Match/SemanticDetails)

An enumeration of types of matches returned by the scanner.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)