Tag Archives: enum

rawValue enum swift – what is rawValue ?

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: