---
title: "init(contentsOf:appGroupID:)"
framework: backgroundassets
role: symbol
role_heading: Initializer
path: "backgroundassets/assetpackmanifest/init(contentsof:appgroupid:)"
---

# init(contentsOf:appGroupID:)

Creates a manifest in memory given a URL to the manifest’s representation as a JSON file on disk.

## Declaration

```swift
init(contentsOf url: URL, appGroupID: String) throws
```

## Parameters

- `url`: A URL to a local JSON file.
- `appGroupID`: The ID of the app group in which to store unmanaged asset packs that are downloaded from this manifest.

## See Also

### Creating an asset pack manifest

- [init(from:appGroupID:)](backgroundassets/assetpackmanifest/init(from:appgroupid:).md)
