<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebDocumentRepresentation/finishedLoading(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(pl)WebDocumentRepresentation(im)finishedLoadingWithDataSource:"
  },
  "title" : "finishedLoading(with:)"
}
-->

# finishedLoading(with:)

Invoked when a data source finishes loading its content.

```
func finishedLoading(with dataSource: WebDataSource!)
```

## Parameters

`dataSource`

A `WebDataSource` object that identifies the request that finished loading.

## See Also

[`setDataSource(_:)`](/documentation/WebKit/WebDocumentRepresentation/setDataSource(_:))

Sets the receiver’s data source.



---

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)