---
layout: "default"
title: "String.UTF16View"
description: "Swift documentation for 'String.UTF16View': A collection of UTF-16 code units that encodes a String value."
keywords: "String.UTF16View,struct,swift,documentation,contains,dropFirst,dropFirst,dropLast,dropLast,elementsEqual,enumerate,filter,flatMap,flatMap,forEach,generate,indexOf,lexicographicalCompare,map,maxElement,minElement,popFirst,popLast,prefix,prefixThrough,prefixUpTo,reduce,removeFirst,reverse,sort,split,startsWith,suffix,suffixFrom,und