---
title: "Swift: Comparing Enums With Associated Values"
url: https://daily.dev/posts/swift-comparing-enums-with-associated-values-vceffxtlh
source_url: https://www.thomashanning.com/swift-comparing-enums-with-associated-values/
type: article
source: "ThomasHanning.com"
published: 2023-05-01T11:12:25.153Z
updated: 2023-05-01T11:12:25.054Z
tags: ["swift"]
reading_time: 3
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Swift: Comparing Enums With Associated Values

**[ThomasHanning.com](https://daily.dev/sources/thomashanning)** · 3 min read · 1 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.thomashanning.com/swift-comparing-enums-with-associated-values/>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#swift](https://daily.dev/tags/swift)

[View this post on daily.dev](https://daily.dev/posts/swift-comparing-enums-with-associated-values-vceffxtlh)
