---
title: traits
framework: testing
role: symbol
role_heading: Instance Property
path: testing/test/traits
---

# traits

The set of traits added to this instance when it was initialized.

## Declaration

```swift
var traits: [any Trait] { get set }
```
