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

# DataDetector.Match.SemanticDetails.FlightNumber

The values the framework returns that represent an airline code and a flight number.

```
struct FlightNumber
```

## Parameters

`FlightNumber`

A [`DataDetector.Match.SemanticDetails.FlightNumber`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/FlightNumber) structure.

## Discussion

The values the data detector returns represent the International Air Transport Association (IATA) code of the airline and the flight number.

## Topics

### Characteristics of a flight number

[`let airlineCode: String`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/FlightNumber/airlineCode)

A value that represents the International Air Transport Association (IATA) code of an airline.

[`let flightNumber: Int`](/documentation/DataDetection/DataDetector/Match/SemanticDetails/FlightNumber/flightNumber)

A value that represent the flight number, excluding the airline code.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)