Displaying a map snapshot on the Journal Entry Detail screen
The Map screen currently displays a single pin representing a journal entry. When you tap the pin on the Map screen and tap the callout button, the details of the journal entry are displayed on the Journal Entry Detail screen, but the second image view on the Journal Entry Detail screen currently displays a placeholder map image. You can capture a map region and convert it into an image using the MKMapSnapshotter
class.
For more information on the MKMapSnapshotter
class, see https://developer.apple.com/documentation/mapkit/mkmapsnapshotter.
To configure the region and appearance of the map that is captured in the snapshot, an MKMapSnapshotter.Options
object is used.
For more information on the MKMapSnapshotter.Options
object, see https://developer.apple.com/documentation/mapkit/mkmapsnapshotter/options.
You will connect the second image view in the Entry Detail Scene to an outlet in...