---
title: isRequired
framework: testing
role: symbol
role_heading: Instance Property
path: testing/expectation/isrequired
---

# isRequired

Whether or not the expectation was required to pass.

## Declaration

```swift
var isRequired: Bool
```
