Swift: Comparing Enums With Associated Values Comparing enums in Swift is very straightforward. As long as they don’t have associated values, we will discuss what you can do in that case. This post was originally published on 2/24/18 and updated on 02/12/23.
Table of contents
Enums With Associated ValuesComparing Enums With Associated ValuesEquatable protocolSort: