---
title: finishLoading()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avassetresourceloadingrequest/finishloading()
---

# finishLoading()

Causes the receiver to treat the processing of the request as complete.

## Declaration

```swift
func finishLoading()
```

## Discussion

Discussion If a dataRequest is present and the resource does not contain the full extent of the data that has been requested according to the values of the requestedOffset and requestedLength properties of the request, invoke finishLoading after providing as much of the requested data as the resource contains.

## See Also

### Reporting the result of the request

- [response](avfoundation/avassetresourceloadingrequest/response.md)
- [isCancelled](avfoundation/avassetresourceloadingrequest/iscancelled.md)
- [finishLoading(with:)](avfoundation/avassetresourceloadingrequest/finishloading(with:).md)
- [isFinished](avfoundation/avassetresourceloadingrequest/isfinished.md)
- [finishLoading(with:data:redirect:)](avfoundation/avassetresourceloadingrequest/finishloading(with:data:redirect:).md)
