This fails to compile on my machine (running macOS 12 beta 2, but I'm not sure whether this also affects older versions or not) due to CGMutableImageMetadata not being found in scope. Importing ImageIO fixes this, and allows it to build and run with no problems.
This fails to compile on my machine (running macOS 12 beta 2, but I'm not sure whether this also affects older versions or not) due to
CGMutableImageMetadata
not being found in scope. ImportingImageIO
fixes this, and allows it to build and run with no problems.