Friday, May 10, 2024
HomeiOS Developmentios - Does setting `PHPickerViewController.preferredAssetRepresentationMode` to `.present` actually work?

ios – Does setting `PHPickerViewController.preferredAssetRepresentationMode` to `.present` actually work?


Doc says I can set preferredAssetRepresentationMode to .present to keep away from transcoding.

var configuration = PHPickerConfiguration(photoLibrary: .shared())
configuration.preferredAssetRepresentationMode = .present

Drawback is, PHPickerViewController does not ask for full photographs permission. As a substitute, it all the time opens a picker with a “Choices” button at backside:

enter image description here

once you faucet “Choices”, you’ll be able to see the default asset illustration mode continues to be “Default”, not “Present”.

enter image description here

So does setting PHPickerViewController.preferredAssetRepresentationMode to .present actually work?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments