Custom Types As Raw Value

Custom Types As Raw Value for Enum in Swift

In this post we will be seeing Custom Types As Raw Value for Enum in Swift. So for your custom type (Class/Struct) to be used as raw value of enums you will need to conform to Equatable and one of the above mentioned protocols.