ImageRenderer fails to render maps

The new ImageRenderer in SwiftUI is really great and should help me to remove some custom code I've had to write in the past.

I've noticed that when used to capture a view that contains a map view, the map is replaced with a 'no entry' sign 🚫

Is this intentional?

Here's some sample code to replicate the issue: https://gist.github.com/shaundon/282cf7ff276093681a1c246ae318c9d4

I have a similar problem but I'm using a UIViewControllerRepresentable, UIViewController and a UIHostingController in my (otherwise SwiftUI)-view hierarchy, which is rendered with the same yellow/red "no entry" sign. I don't know yet which of these UIKit-brigdes causes the issue, but I guess MapKit in SwiftUI uses a similar brigde under the hood, so maybe it's related.

ImageRenderer fails to render maps
 
 
Q