---
title: "init(asset:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avassetimagegenerator/init(asset:)"
---

# init(asset:)

Creates an object that generates images for times within a video asset.

## Declaration

```swift
init(asset: AVAsset)
```

## Parameters

- `asset`: A video asset from which to generate images.
