---
title: "add(_:)"
framework: xctest
role: symbol
role_heading: Instance Method
path: "xctest/xctmutableissue/add(_:)"
---

# add(_:)

Adds supporting data to an issue.

## Declaration

```swift
func add(_ attachment: XCTAttachment)
```

## Parameters

- `attachment`: A data item that augments an issue, such as a file, image, screenshot, data blob, or ZIP file.

## See Also

### Issue Details

- [type](xctest/xctmutableissue/type.md)
- [compactDescription](xctest/xctmutableissue/compactdescription.md)
- [detailedDescription](xctest/xctmutableissue/detaileddescription.md)
- [sourceCodeContext](xctest/xctmutableissue/sourcecodecontext.md)
- [associatedError](xctest/xctmutableissue/associatederror.md)
- [attachments](xctest/xctmutableissue/attachments.md)
