---
layout: "default"
title: "CodingUserInfoKey"
description: "Swift documentation for 'CodingUserInfoKey': A user-defined key for providing context during encoding and decoding."
keywords: "CodingUserInfoKey,struct,swift,documentation,hashValue,rawValue,RawValue"
root: "/v4.2"
---

<div class="intro-declaration"><code class="language-swift">struct CodingUserInfoKey</code></div>

<div class="discussion comment">
    <p>A user-defined key for providing context during encoding and decoding.</p>
</div>

<table