When the SwiftUI framework was first released, developers are required to wrap the MKMapView class in order to embed a map in a SwiftUI application. With the release of Xcode 12, the latest version of SwiftUI provides a native SwiftUI Map view for you to display a map interface. Optionally, you can display annotations using the built-in annotation views such as MapMarker.
In this week’s tutorial, we will show you how to use the Map structure in SwiftUI and create annotations at a specific locations on the map.
As usual, we collect some other great tutorials for your weekend reading. Have fun!