Hi,
In my previous post it was suggested to use MKMapSnapshotter to create Widgets containing map data.
Now I wonder how I can create the right screenshot for the rect defined by MKMapSnapshotter size according to the current Widget size. It seems that the size differs by device and by widget size.
In my previous post it was suggested to use MKMapSnapshotter to create Widgets containing map data.
Now I wonder how I can create the right screenshot for the rect defined by MKMapSnapshotter size according to the current Widget size. It seems that the size differs by device and by widget size.
Hello, the methods in TimelineProvider have an argument of type TimelineProviderContext. You can use TimelineProviderContext.displaySize to get the size you need.