I'm having this weird issue where context.withCGContext { ...
always has a reference to something like this: <CGContext 0x...> (kCGContextTypeUnknown)
and sure enough when trying to use it I get (the ellipsis are mine since the address is irrelevant):
invalid context 0x... If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable
The same code works fine on iOS.
The GraphicsContext
works fine on both platforms.
Is anyone else having this issue, or am I missing something obvious here?
[macOS 12.4 - Tried both on Intel & M1]