Exploring RawRepresentable and Enums in Swift

Enums for Raw types

Steven Curtis
3 min readMar 22

--

Photo by Parker Johnson on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging

RawRepresentable is a protocol from the Swift standard library. We might be aware of this in that conformance is autosynthesized — but are we able to dive deeper? This article is designed to help us do just that.

Prerequisites:

--

--