---
title: "init(root:keyPath:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/predicateexpressions/keypath/init(root:keypath:)"
---

# init(root:keyPath:)

## Declaration

```swift
init(root: Root, keyPath: any KeyPath<Root.Output, Output> & Sendable)
```
