<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebView-swift.class/downloadDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebView(py)downloadDelegate"
  },
  "title" : "downloadDelegate"
}
-->

# downloadDelegate

The receiver’s download delegate.

```
unowned(unsafe) var downloadDelegate: (any WebDownloadDelegate)! { get set }
```

## Discussion

Implements the [`WebDownload`](/documentation/WebKit/WebDownload) protocol.

WebKit may create `WebDownload` objects automatically to handle downloads that start with a webpage or link.

---

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)