Hello!
Got it working now by using .itemProvider.loadDataRepresentation(forTypeIdentifier: "public.image") and setting configuration.preferredAssetRepresentationMode to .current
.itemProvider.loadObject(ofClass: UIImage.self) still does not work as the returned image is always nil for a HEIC file.
However, now in beta 6 i don't get the old error message but rather:
[claims] Upload preparation for claim 2E4CFF7E-C854-4B56-BBC5-F64CBAE75B5A completed with error: Error Domain=NSCocoaErrorDomain Code=260 "The file “version=1&uuid=C6966245-F3C9-4777-8C0B-309FB71EE995&mode=compatible.jpeg” couldn’t be opened because there is no such file."
So perhaps related to issue (64630315)?
This is only in the simulator as i do not have my beta device with me but will try to verify it later.
And yes from what i can see it affects all HEIC images.