<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetResourceLoadingRequest/finishLoading()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetResourceLoadingRequest(im)finishLoading"
  },
  "title" : "finishLoading()"
}
-->

# finishLoading()

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

```
func finishLoading()
```

## Discussion

If a [`dataRequest`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/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`](/documentation/AVFoundation/AVAssetResourceLoadingDataRequest/requestedOffset) and [`requestedLength`](/documentation/AVFoundation/AVAssetResourceLoadingDataRequest/requestedLength) properties of the request, invoke `finishLoading` after providing as much of the requested data as the resource contains.

---

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)