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

# DataDetector.Match.SemanticDetails.ShipmentTrackingNumber

A match that the data detector determines represents a shipment tracking number.

```
struct ShipmentTrackingNumber
```

## Discussion

The [`carrier`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/ShipmentTrackingNumber/carrier) property is a string that represents the carrier or service name, and the [`trackingNumber`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/ShipmentTrackingNumber/trackingNumber) is the number used by the carrier to track the package. The [`trackingURL`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/ShipmentTrackingNumber/trackingURL) may contain a URL that someone can use to track the progress of the delivery.

## Topics

### Properties that describe a shipment

[`let carrier: String`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/ShipmentTrackingNumber/carrier)

A string that represents the carrier or service name.

[`let trackingNumber: String`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/ShipmentTrackingNumber/trackingNumber)

The number the carrier uses to track the package.

[`let trackingURL: URL?`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/ShipmentTrackingNumber/trackingURL)

A property that may contain a URL that someone can use to track the progress of the delivery.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)