Contents

makeCase(_:)

Creates an enumeration case with the specified raw value.

Declaration

func makeCase(_ rawValue: String) -> AnyAppEnum

Parameters

  • rawValue:

    The string representation of the enumeration case.

Mentioned in

Return Value

A type-erased enumeration instance with the specified value.

Discussion

The provided rawValue needs to match one of your enum’s cases.