Tag Archives: rawValue

rawValue enum swift – what is rawValue ?

rawValue enum swift – what is rawValue ? It is the value held by name in enum. By default, swift assigns enum value as zero and then incrementing by one. For accessing rawValue, we can see example below: