when(traits:)
Creates a package dependency trait condition.
Declaration
static func when(traits: Set<String>) -> Package.Dependency.Trait.Condition?Parameters
- traits:
The set of traits that enable the dependencies trait.
Discussion
If the depending package enables any of the traits you provide, the package manager enables the dependency to which this condition applies.