Browsing Category

Swift

3 posts
food healthy leaf pineapple

Check an enum case without a switch statement

Enumerations are great when you need to define a common type with multiple related values in a type-safe manner. Often you’ll process these using a switch statement, but how do you check for a specific case without using a switch statement?
Read More