# CaseIterable for C-imported enums

**URL:** <https://forums.swift.org/t/caseiterable-for-c-imported-enums/67116>\
**Category:** Using Swift\
**Created:** [September 5, 2023, 12:18am UTC](https://forums.swift.org/t/caseiterable-for-c-imported-enums/67116 "2023-09-05T00:18:53Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Jumhyn](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jumhyn/32/3891_2.png) [@Jumhyn](https://forums.swift.org/u/Jumhyn)\
**Post date:** [September 5, 2023, 4:51pm UTC](https://forums.swift.org/t/caseiterable-for-c-imported-enums/67116/5 "2023-09-05T16:51:31Z")

</div>

> [@jrose](#):
>
> So I was going to say that too, but CaseIterable never promises to return _every_ case

Huh? From the [docs](https://developer.apple.com/documentation/swift/caseiterable/allcases-swift.type.property):

> # CaseIterable
> 
> A type that provides a collection of all of its values.

That seems pretty explicit that any possible value ought to be contained in the `allCases` collection (the docs for which reiterate the "all values" terminology).

---

_[View the full topic](https://forums.swift.org/t/caseiterable-for-c-imported-enums/67116)._
