---
title: "connectionDidFinishLoading(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsurlconnectiondatadelegate/connectiondidfinishloading(_:)"
---

# connectionDidFinishLoading(_:)

Sent when a connection has finished loading successfully.

## Declaration

```swift
optional func connectionDidFinishLoading(_ connection: NSURLConnection)
```

## Parameters

- `connection`: The connection sending the message.

## Discussion

Discussion The delegate will receive no further messages for connection.

## See Also

### Receiving Connection Progress

- [connection(_:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:)](foundation/nsurlconnectiondatadelegate/connection(_:didsendbodydata:totalbyteswritten:totalbytesexpectedtowrite:).md)
