Contents

trait(name:description:enabledTraits:)

Creates a trait with a name, a description, and set of additional traits it enables.

Declaration

static func trait(name: String, description: String? = nil, enabledTraits: Set<String> = []) -> Trait

Parameters

  • name:

    The trait’s canonical name.

  • description:

    The trait’s description.

  • enabledTraits:

    A set of other traits of this package that this trait enables.