---
title: expectedValue
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctkvoexpectation/expectedvalue
---

# expectedValue

The value that the key path’s specified property must equal to fulfill the expectation.

## Declaration

```swift
var expectedValue: Any? { get }
```

## See Also

### Expectation properties

- [keyPath](xctest/xctkvoexpectation/keypath.md)
- [observedObject](xctest/xctkvoexpectation/observedobject.md)
- [options](xctest/xctkvoexpectation/options.md)
