Contents

trait(name:condition:)

Creates a new enabled trait.

Declaration

static func trait(name: String, condition: Package.Dependency.Trait.Condition? = nil) -> Package.Dependency.Trait

Parameters

  • name:

    The name of the enabled trait.

  • condition:

    The condition under which the trait is enabled.