I haven't be able to generate a HEIC photo with IPTC metadata, in JPEG I get it but no in HEIC. I'm using:
CIContext method heifRepresentation(of: image, format: CIFormat.RGBA8, colorSpace: colorSpace, options: options)
to generate the photo data, image is a CIImage and has the IPTC metadata but the final photo doesn't have it.
If I use:
CIContext method jpegRepresentation(of: image, colorSpace: ColorSpace.deviceRGB, options: options)
the final JPG photo has the IPTC information.
Anyone with the same issue or with an idea about what's going on?