In my app I get a UIImage
for a PHAsset
via PHImageManager.requestImage(for:targetSize:contentMode:options:resultHandler:)
. I directly display that image in a UIImageView
that has preferredImageDynamicRange
set to .high
. The problem is I do not see the high dynamic range.
I see the HDRDemo23 sample code uses PhotosPicker
to get a UIImage
from Data
through UIImageReader
whose config enables prefersHighDynamicRange.
Is there a way to support HDR when using the Photos APIs to request display images?
And is there support for PHLivePhoto
displayed in PHLivePhotoView
retrieved via PHImageManager.requestLivePhoto
?