---
title: Package.Dependency.Trait.Condition
framework: packagedescription
role: symbol
role_heading: Structure
path: packagedescription/package/dependency/trait/condition-swift.struct
---

# Package.Dependency.Trait.Condition

A condition that limits the application of a trait for a dependency.

## Declaration

```swift
struct Condition
```

## Topics

### Type Methods

- [when(traits:)](packagedescription/package/dependency/trait/condition-swift.struct/when(traits:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
