---
title: "matches(_:)"
framework: observation
role: symbol
role_heading: Instance Method
path: "observation/observationtracking/event/matches(_:)"
---

# matches(_:)

## Declaration

```swift
func matches(_ keyPath: PartialKeyPath<some Observable>) -> Bool
```
