Creates a photo settings object with the specified output format.
- iOS 10.0+
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
A dictionary of Core Video pixel buffer attributes or AVFoundation video settings constants (see Video Settings).
To capture a photo in an uncompressed format, such as 420f, 420v, or BGRA, set the key
CVPixel Buffer Pixel Format Type Key
formatdictionary. The corresponding value must be one of the pixel format identifiers listed in the
availablearray of your photo capture output.
Photo Pixel Format Types
To capture a photo in a compressed format, such as JPEG, set the key
formatdictionary. The corresponding value must be one of the codec identifiers listed in the
availablearray of your photo capture output. For a compressed format, you can also specify a compression level with the key
Photo Codec Types
A new photo settings object.
Requesting capture in a processed format adds requirements for other photo settings: for details, see the
format property. The capture output validates these requirements when you call the
capture method. If your settings and delegate do not meet these requirements, that method raises an exception.