CaseNameable
public protocol CaseNameable
Extend all enums with a simple method to derive their names.
-
name
Default implementationThe 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 }