Contents

format

A dictionary describing the processed format (for example, JPEG) to deliver captured photos in.

Declaration

var format: [String : Any]? { get }

Discussion

This property is read-only—you specify a processed format when creating a settings object with the photoSettings, init(format:), or init(rawPixelFormatType:processedFormat:) initializer.

When capturing images in processed formats, the following requirements apply:

If this dictionary has the AVVideoCodecKey key, the value for that key must be listed in the photo output’s availablePhotoCodecTypes array.

The capture output validates these requirements when you call the capturePhoto(with:delegate:) method. If your settings and delegate do not meet these requirements, that method raises an exception.

See Also

Inspecting settings