---
layout: "default"
title: "CustomStringConvertible"
description: "Swift documentation for 'CustomStringConvertible': A type with a customized textual representation."
keywords: "CustomStringConvertible,protocol,swift,documentation,description"
root: "/v2.2"
---

<div class="intro-declaration"><code class="language-swift">protocol CustomStringConvertible</code></div>

<div class="discussion comment">
    <p>A type with a customized textual representation.</p>

<p>This textual representation is used when v