---
title: "transitInformationCheckingResult(range:components:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nstextcheckingresult/transitinformationcheckingresult(range:components:)"
---

# transitInformationCheckingResult(range:components:)

Creates and returns a text checking result with the specified transit information.

## Declaration

```swift
class func transitInformationCheckingResult(range: NSRange, components: [NSTextCheckingKey : String]) -> NSTextCheckingResult
```

## Parameters

- `range`: The range of the detected result.
- `components`: A dictionary containing the transit components. The currently supported keys are doc://com.apple.foundation/documentation/Foundation/NSTextCheckingKey/airline and doc://com.apple.foundation/documentation/Foundation/NSTextCheckingKey/flight.

## Return Value

Return Value Returns an NSTextCheckingResult with the specified range and a resultType of transitInformation.
