Contents

init(name:description:enabledTraits:)

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

Declaration

init(name: String, description: String? = nil, enabledTraits: Set<String> = [])

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.