---
title: userInfo
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctattachment/userinfo
---

# userInfo

User-provided metadata associated with the attachment.

## Declaration

```swift
var userInfo: [AnyHashable : Any]? { get set }
```

## Discussion

Discussion Assign a custom dictionary to this property to store attachment-specific metadata along with the attachment. note: The contents of the userInfo dictionary are not represented in Xcode test reports.

## See Also

### Attachment Metadata

- [name](xctest/xctattachment/name.md)
- [uniformTypeIdentifier](xctest/xctattachment/uniformtypeidentifier.md)
