Post

Replies

Boosts

Views

Activity

Reply to How do I properly set tagged color data in MTKView and CIContext?
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:
Mar ’24