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

# DataDetector.Match.SemanticDetails.PhoneNumber

A match that the data detector determines represents a phone number.

```
struct PhoneNumber
```

## Discussion

The [`phoneNumber`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/PhoneNumber/phoneNumber) property contains the phone number the data detector found. It may contain an extension, such as a passcode or an office extension. The [`label`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/PhoneNumber/label) property may contain a value suitable to populate a label when creating a contact.

## Topics

### Components of a phone number

[`let phoneNumber: String`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/PhoneNumber/phoneNumber)

A string that contains the phone number the data detector found.

[`let label: String?`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/PhoneNumber/label)

An optional string that may contain a value suitable to populate a label when creating a contact.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)