rawValue enum swift – what is rawValue ?

By | July 21, 2016

rawValue enum swift – what is rawValue ?

It’s the value hold 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: