---
title: "finishedLoading(with:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webdocumentrepresentation/finishedloading(with:)"
---

# finishedLoading(with:)

Invoked when a data source finishes loading its content.

## Declaration

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

## Parameters

- `dataSource`: A WebDataSource object that identifies the request that finished loading.

## See Also

### Related Documentation

- [setDataSource(_:)](webkit/webdocumentrepresentation/setdatasource(_:).md)

### Loading content

- [receivedData(_:with:)](webkit/webdocumentrepresentation/receiveddata(_:with:).md)
- [receivedError(_:with:)](webkit/webdocumentrepresentation/receivederror(_:with:).md)
