# Decoding a dictionary with a custom type (not String) as key

**URL:** <https://forums.swift.org/t/decoding-a-dictionary-with-a-custom-type-not-string-as-key/35290>\
**Category:** Using Swift\
**Tags:** codable, dictionary\
**Created:** [April 11, 2020, 6:19pm UTC](https://forums.swift.org/t/decoding-a-dictionary-with-a-custom-type-not-string-as-key/35290 "2020-04-11T18:19:17Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Lantua](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/lantua/32/8868_2.png) [@Lantua](https://forums.swift.org/u/Lantua)\
**Post date:** [April 11, 2020, 9:06pm UTC](https://forums.swift.org/t/decoding-a-dictionary-with-a-custom-type-not-string-as-key/35290/6 "2020-04-11T21:06:42Z")

</div>

> [@itaiferber](#):
>
> and [my response in the thread](https://forums.swift.org/t/bug-or-pebkac/33796)

Should be [this one](https://forums.swift.org/t/bug-or-pebkac/33796/17) (I tried to link there, but couldn't find the post 😛).

---

_[View the full topic](https://forums.swift.org/t/decoding-a-dictionary-with-a-custom-type-not-string-as-key/35290)._
