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

# DataDetector.Match.SemanticDetails.PhoneNumber

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

## Declaration

```swift
struct PhoneNumber
```

## Discussion

Discussion The 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 property may contain a value suitable to populate a label when creating a contact.

## Topics

### Components of a phone number

- [phoneNumber](datadetection/datadetector/match/semanticdetails/phonenumber/phonenumber.md)
- [label](datadetection/datadetector/match/semanticdetails/phonenumber/label.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)
