Creates an asset export session with a specified asset and preset.


init?(asset: AVAsset, presetName: String)



The asset to export.


A string constant specifying the name of the preset template for the export.

For possible values, see Export Preset Names for Device-Appropriate QuickTime Files, Export Preset Names for QuickTime Files of a Given Size, AVAssetExportSession.Status.cancelled, Export Preset Name for iTunes Audio, and Export Preset Name for Pass-Through.

Return Value

An asset export session initialized to export asset using preset presetName.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software