<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetExportSession/init(asset:presetName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetExportSession(im)initWithAsset:presetName:"
  },
  "title" : "init(asset:presetName:)"
}
-->

# init(asset:presetName:)

Creates an export session with a preset configuration.

```
init?(asset: AVAsset, presetName: String)
```

## Parameters

`asset`

The asset to export.

`presetName`

A string constant that specifies the preset template for the export. See [Export presets](/documentation/AVFoundation/export-presets) for available values.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)