<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Cinematic",
  "identifier" : "/documentation/Cinematic/CNAssetInfo-2ata2/downloadResources(timeout:subprogress:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Cinematic"
    ],
    "preciseIdentifier" : "s:9Cinematic11CNAssetInfoC17downloadResources7timeout11subprogressACSd_10Foundation11SubprogressVSgntYaKF"
  },
  "title" : "downloadResources(timeout:subprogress:)"
}
-->

# downloadResources(timeout:subprogress:)

Downloads the resources required to render cinematic effects for the given asset
Resources are device-wide and are cached once downloaded

```
@discardableResult func downloadResources(timeout: TimeInterval = defaultResourceDownloadTimeout, subprogress: consuming Subprogress? = nil) async throws -> CNAssetInfo
```

## Parameters

`subprogress`

monitors the download progress

## Discussion

Cancellation: this method responds to Swift Task cancellation. If the calling task is
cancelled, the download stops; any partially downloaded resources are discarded.

---

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)