Cleaning Up Swift Enumeration Evaluation

Just some quick and simple Swift stuff in this post around writing cleaner code. It’s pretty common to see a pattern like the following in existing code when evaluating enumerations. While the above code works, it’s also not very legible, is repetitive, and can be hard to maintain as well as error-prone if multiple enumContinue reading “Cleaning Up Swift Enumeration Evaluation”