<!--
{
  "availability" : [
    "Swift: 6.2.0 -",
    "Xcode: 26.0.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "swift: 6.0.0 -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Testing",
  "identifier" : "/documentation/Testing/IssueHandlingTrait/handleIssue(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift Testing"
    ],
    "preciseIdentifier" : "s:7Testing18IssueHandlingTraitV06handleB0yAA0B0VSgAFF"
  },
  "title" : "handleIssue(_:)"
}
-->

# handleIssue(_:)

Handle a specified issue.

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

## Parameters

`issue`

The issue to handle.

## Return Value

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)