---
title: issueMatcher
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctexpectedfailure/options/issuematcher
---

# issueMatcher

A block of code that determines whether the test issue fulfills the expected failure.

## Declaration

```swift
var issueMatcher: (XCTIssue) -> Bool { get set }
```

```swift
var issueMatcher: (XCTIssueReference) -> Bool { get set }
```

## Discussion

Discussion Provide code to examine the issue and respond with a Boolean value indicating whether the issue fulfills the expected failure.
