Relative Content

Tag Archive for swiftswiftuistatemapkitrender

MKMapView not retaining state?

I have an extremely simple set up in which a MapKit resides within another view. I want the map to be able to be expanded into a fullScreenCover. The map properly shows up in ProfilePageView on initial load, and properly shows up in the fullScreenCover when expanded. However, when the fullScreenCover is exited the map is effectively totally gone (see image below). Clicking on the rectangle again properly sends it back to the fullScreenCover where it is displaying correctly.