rawValue enum swift – what is rawValue ?

By | July 21, 2016

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: