<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/BorrowingIteratorAdapter",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s24BorrowingIteratorAdapterV"
  },
  "title" : "BorrowingIteratorAdapter"
}
-->

# BorrowingIteratorAdapter

```
@frozen struct BorrowingIteratorAdapter<Iterator> where Iterator : IteratorProtocol
```

## Topics

### Initializers

[`init(iterator: Iterator)`](/documentation/Swift/BorrowingIteratorAdapter/init(iterator:))

### Instance Methods

[`func nextSpan(maxCount: Int) -> Span<Iterator.Element>`](/documentation/Swift/BorrowingIteratorAdapter/nextSpan(maxCount:))

Returns a span over the next group of elements that are ready to by visited,
up to the specifed maximum.

### Type Aliases

[`typealias Element`](/documentation/Swift/BorrowingIteratorAdapter/Element)

[`typealias Failure`](/documentation/Swift/BorrowingIteratorAdapter/Failure)

### Default Implementations

[BorrowingIteratorProtocol Implementations](/documentation/Swift/BorrowingIteratorAdapter/BorrowingIteratorProtocol-Implementations)

## Relationships

### Conforms To

[`BorrowingIteratorProtocol`](/documentation/Swift/BorrowingIteratorProtocol)

---

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)