<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSTextCheckingResult/components",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextCheckingResult(py)components"
  },
  "title" : "components"
}
-->

# components

A dictionary containing the components of a type checking result.

```
var components: [NSTextCheckingKey : String]? { get }
```

## Discussion

Currently used by the transit checking result. The supported keys are located in [Keys for Transit Components](/documentation/Foundation/keys-for-transit-components).

## See Also

[`+  transitInformationCheckingResultWithRange:components:`](/documentation/Foundation/NSTextCheckingResult/transitInformationCheckingResult(range:components:))

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



---

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)