iOS 17 MKMapSnapshotter 'black square' issues

Hi, I'm using MKMapSnapshotter in my app to make a snapshot of routes and I'm using MKMarkerAnnotationView for markers with specific images. This all used to work just fine until iOS 17 arrived. Since then every map that is rendered places a back square around my markers. I have tried everything, searched the whole Internet and there is no way I can solve this...

Anyone ran into this and have a way to fix this or is is just a bug we have to live with for now?

Thanks in advance!

Replies

Hi,

when you call UIGraphicsBeginImageContextWithOptions you have to set to false the opaque parameter if your bitmap is NOT fully opaque