Map View in a Widget

it doesn't seem to be currently possible, but I would like to embed a MapView in my widget and allow it to update annotations in the timeline using the users current location. I can't seem to find any way to embed a mapview as an UIViewRepresentable and see it in the preview.

Replies

Hello, our recommendation for displaying maps is to use a MKMapSnapshotter in your TimelineProvider.
Post not yet marked as solved Up vote reply of izzy Down vote reply of izzy
The problem is that MKMapSnapshotter.start does not run while the app is in the background and th callback is never called in TimelineProvider. Have you actually tried this? I have tried it and the completionHandler for MKMapSnapshotter.start is never called in TimelineProvider.
I have same problem as MeanRaw, but only at macOS (Catalyst app). At iOS it works.