<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/URLSchemeTaskResult/data(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit19URLSchemeTaskResultO4datayAC10Foundation4DataVcACmF"
  },
  "title" : "URLSchemeTaskResult.data(_:)"
}
-->

# URLSchemeTaskResult.data(_:)

Data for the resource. This value may contain all of the data or only some of it.

```
case data(Data)
```

## Discussion

If you load the data incrementally, multiple of these values may be added to the result sequence to deliver
each new portion of data. Each time some new Data is added to the sequence, WebKit appends the data to any
previously received data.

A [`URLSchemeTaskResult.response(_:)`](/documentation/WebKit/URLSchemeTaskResult/response(_:)) must have been added to the sequence prior to any data being aded to it.

---

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)