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

# init(from:appGroupID:)

Creates a manifest in memory given JSON-encoded data.

## Declaration

```swift
init(from data: Data, appGroupID: String) throws
```

## Parameters

- `data`: JSON-encoded data.
- `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(contentsOf:appGroupID:)](backgroundassets/assetpackmanifest/init(contentsof:appgroupid:).md)
