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

# downloadResources(versions:timeout:subprogress:)

Downloads the resources required to render cinematic effects on assets
Resources are device-wide and are cached once downloaded

```
static func downloadResources(versions: Set<CNCinematicResourceVersion> = [], timeout: TimeInterval = defaultResourceDownloadTimeout, subprogress: consuming Subprogress? = nil) async throws
```

## Parameters

`versions`

Resource version(s) to download. Pass an empty set to
download all available resources

`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)