Skip to content

Initializer

init(cases:)

Create a new enumeration type with a list of cases.
init(cases: [String])

Parameters

cases

The list of cases in the enumeration.