Post marked as solved
Post marked as solved with 4 replies, 1,196 views
How to show photos from PHPickerViewController the way they are shown in Apple's Photos with "View Full HDR" enabled? I've found all EDR-related talks, rendering CIImage into MTKView already... nothing helps, image is same as in UIImageView. How?! :–)
What I do now:
I get photo URL (copy) via provider.loadFileRepresentation(forTypeIdentifier: UTType.image.identifier
I create MTKView with metalLayer.wantsExtendedDynamicRangeContent = true and other recommended settings
I load CIImage from URL provided earlier.
I render CIImage via CIContext backed with mtlCommandQueue with option .useSoftwareRenderer: false.
And I still get "normal" image.
Exact same image is being displayed in Photos app with much brighter whites, and this is exactly what I want to achieve.
Please help :)
Thanks!