---
layout: "default"
title: "String.UTF16View.Index"
description: "Swift documentation for 'String.UTF16View.Index': A position in a string&#39;s collection of UTF-16 code units."
keywords: "String.UTF16View.Index,struct,swift,documentation,advancedBy,advancedBy,distanceTo,predecessor,samePositionIn,samePositionIn,samePositionIn,successor,Distance"
root: "/v2.2"
---

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

<div class="discussion comment">
    