I think I solved it. I set the colorspace on the underlying CAMetalLayer of the MTKView (iOS/Catalyst does not let you set this directly on MTKView):
Add the following code at the end of the init method in MTKImageView.swift:
if let taggedColorSpace = image.colorSpace,
let metalLayer = self.layer as? CAMetalLayer {
metalLayer.colorspace = taggedColorSpace
}
All three images now properly display for me:
Topic:
Graphics & Games
SubTopic:
Metal
Tags: