---
title: issueMatcher
framework: XCTest
role: symbol
role_heading: Instance Property
platforms: []
path: xctest/xctexpectedfailure/options/3726086-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

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