---
layout: "default"
title: "String.UTF8View"
description: "Swift documentation for 'String.UTF8View': A collection of UTF-8 code units that encodes a String value."
keywords: "String.UTF8View,struct,swift,documentation,generate,getMirror,debugDescription,description,endIndex,startIndex,Generator,Element,Index,SubSequence"
root: "/v1.2"
---

<div class="intro-declaration"><code class="language-swift">struct String.UTF8View</code></div>

<div class="discussion comment">
    <p>A collection of UTF-8 code uni