<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/PredicateExpressions/KeyPath",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation20PredicateExpressionsO7KeyPathV"
  },
  "title" : "PredicateExpressions.KeyPath"
}
-->

# PredicateExpressions.KeyPath

```
struct KeyPath<Root, Output> where Root : PredicateExpression
```

## Topics

### Initializers

[`init(root: Root, keyPath: any KeyPath<Root.Output, Output> & Sendable)`](/documentation/Foundation/PredicateExpressions/KeyPath/init(root:keyPath:))

### Instance Properties

[`let keyPath: any KeyPath<Root.Output, Output> & Sendable`](/documentation/Foundation/PredicateExpressions/KeyPath/keyPath)

[`var kind: PredicateExpressions.KeyPath<Root, Output>.CommonKeyPathKind?`](/documentation/Foundation/PredicateExpressions/KeyPath/kind)

[`let root: Root`](/documentation/Foundation/PredicateExpressions/KeyPath/root)

### Enumerations

[`enum CommonKeyPathKind`](/documentation/Foundation/PredicateExpressions/KeyPath/CommonKeyPathKind)

## Relationships

### Conforms To

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

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

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

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

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

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

[`PredicateExpression`](/documentation/Foundation/PredicateExpression)

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

[`StandardPredicateExpression`](/documentation/Foundation/StandardPredicateExpression)

---

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)