How do I return a cgImage as an ImageView using SwiftUI and Xcode for macOS/
I have data stored in a Data object as [UInt8] to be rendered as a grayscale 8-bit image. I don't know how to get from a cgImage to an image View. The code below at least compiles up to the…