CaseNameable

public protocol CaseNameable

Extend all enums with a simple method to derive their names.

  • name Default implementation

    The name of the enumeration (as written in case).

    Default Implementation

    The name of the enumeration (as written in case).

    Declaration

    Swift

    var name: String { get }