---
title: "shouldDownload(_:)"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/manageddownloaderextension/shoulddownload(_:)"
---

# shouldDownload(_:)

Determines whether to download an asset pack.

## Declaration

```swift
func shouldDownload(_ assetPack: AssetPack) -> Bool
```

## Parameters

- `assetPack`: An asset pack that’s being considered as a candidate to be downloaded.

## Mentioned in

Downloading Apple-hosted asset packs

## Return Value

Return Value Whether the asset pack should be downloaded.

## Discussion

Discussion By default, the system automatically downloads all applicable asset packs with either “essential” or “prefetch” download policies for the current installation event type. You can optionally implement this method to filter out unwanted asset packs at runtime.
