---
title: "assetPack(withID:)"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/assetpackmanifest/assetpack(withid:)"
---

# assetPack(withID:)

Returns the asset pack in this manifest with the given ID.

## Declaration

```swift
func assetPack(withID id: String) -> AssetPack?
```

## Parameters

- `id`: The asset pack’s ID.

## Return Value

Return Value The asset pack, if it could be found in this manifest; otherwise, nil.

## See Also

### Getting asset packs

- [assetPacks](backgroundassets/assetpackmanifest/assetpacks.md)
