<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macCatalyst: -",
    "macOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "IdentityDocumentServices",
  "identifier" : "/documentation/IdentityDocumentServices/DigitalCredentialsQuery/ClaimsQuery/ClaimPath/components",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "IdentityDocumentServices"
    ],
    "preciseIdentifier" : "s:24IdentityDocumentServices23DigitalCredentialsQueryV06ClaimsF0V9ClaimPathV10componentsSayAE0I9ComponentOGvp"
  },
  "title" : "components"
}
-->

# components

The steps that lead from the top level of a credential to the claim.

```
var components: [DigitalCredentialsQuery.ClaimsQuery.PathComponent]
```

## Discussion

Each step is a [`DigitalCredentialsQuery.ClaimsQuery.PathComponent`](/documentation/IdentityDocumentServices/DigitalCredentialsQuery/ClaimsQuery/PathComponent) that selects one level of the credential’s data. The first component applies to the top level of the credential, and each later component applies to the data that the previous component selects. The order of the components matters, because the system follows them in sequence.

For example, a credential that contains the following data has a `city` claim inside an `address` object, and a `nationalities` array:

```json
{
  "address": { "city": "Cupertino" },
  "state": ["CA"]
}
```

To request the city, use a path with two steps that selects `address` and then `city`:

```swift
let cityPath = DigitalCredentialsQuery.ClaimsQuery.ClaimPath([
    .key("address"),
    .key("city")
])
```

---

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)