Contents

availablePhotoFileTypes

The list of file types currently supported for photo capture and output.

Declaration

var availablePhotoFileTypes: [AVFileType] { get }

Discussion

When you issue a photo capture request, you can separately specify the format for capturing or encoding image data and the container format for producing output files containing that data. However, each file type supports only a specific set of image data types.

After choosing an output file type, use the supportedPhotoCodecTypes(for:) (for capture in compressed formats such as HEVC and JPEG) or supportedPhotoPixelFormatTypesForFileType: (for capture in uncompressed formats such as TIFF) method to choose an appropriate data format before creating a photo settings object.

See Also

Determining supported file types