<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/URL/AsyncBytes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation3URLV10AsyncBytesV"
  },
  "title" : "URL.AsyncBytes"
}
-->

# URL.AsyncBytes

An asynchronous sequence of bytes loaded from the URL.

```
struct AsyncBytes
```

## Topics

### Creating an iterator

[`makeAsyncIterator()`](/documentation/Foundation/URL/AsyncBytes/makeAsyncIterator())

Creates the asynchronous iterator that produces elements of this asynchronous sequence.

[`URL.AsyncBytes.AsyncIterator`](/documentation/Foundation/URL/AsyncBytes/AsyncIterator)

The iterator type that produces elements of this asynchronous sequence.

### Adapting Textual Sequences

[`lines`](/documentation/Foundation/URL/lines)

The URL’s resource data, as an asynchronous sequence of lines of text.

### Finding Elements

### Selecting Elements

### Excluding Elements

### Transforming a Sequence

### Supporting Types

[`URL.AsyncBytes.Element`](/documentation/Foundation/URL/AsyncBytes/Element)

The type of element produced by this asynchronous sequence.



---

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)