---
title: "handleIssue(_:)"
framework: testing
role: symbol
role_heading: Instance Method
path: "testing/issuehandlingtrait/handleissue(_:)"
---

# handleIssue(_:)

Handle a specified issue.

## Declaration

```swift
func handleIssue(_ issue: Issue) -> Issue?
```

## Parameters

- `issue`: The issue to handle.

## Return Value

Return Value An issue to replace issue, or else nil if the issue should not be recorded.
