Contents

preferredAssetRepresentationMode

A mode that determines which representation to use if an asset contains more than one.

Declaration

var preferredAssetRepresentationMode: PHPickerConfiguration.AssetRepresentationMode

Discussion

An asset can contain many representations under the same uniform type identifier, or you can prefer a specific format. This mode determines which representation an NSItemProvider uses if many exist.

The system may perform additional transcoding to convert the asset you request to the compatable representation. Use PHPickerConfiguration.AssetRepresentationMode.current to avoid transcoding, if possible.

See Also

Selecting the preferred asset representation