<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/String/UnicodeScalarView/Iterator",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:SS17UnicodeScalarViewV8IteratorV"
  },
  "title" : "String.UnicodeScalarView.Iterator"
}
-->

# String.UnicodeScalarView.Iterator

A type that provides the collection’s iteration interface and
encapsulates its iteration state.

```
@frozen struct Iterator
```

## Overview

By default, a collection conforms to the `Sequence` protocol by
supplying `IndexingIterator` as its associated `Iterator`
type.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)