New blog post 📝
Swift enums are not a list of named constants - they're one of the most powerful tools in the language, and I don't think they get enough credit.
I wrote a deep dive covering associated values, raw values, exhaustive switching, error modelling, view state patterns, recursive enums, and how they stack up against Kotlin's sealed interfaces.