---
layout: "default"
title: "StaticString"
description: "Swift documentation for 'StaticString': A string type designed to represent text that is known at compile time."
keywords: "StaticString,struct,swift,documentation,withUTF8Buffer,customMirror,debugDescription,description,hasPointerRepresentation,isASCII,unicodeScalar,utf8CodeUnitCount,utf8Start"
root: "/v3.1"
---

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

<div class="discussion comment">
    <p>A st