As we learned in the previous chapter, Chapter 8, Networking and Linking to Your Existing App Logic, working with existing app logic will require you from time to time to make use of 0f UIViewRepresentable and/or UIViewControllerRepresentable when implementing existing UIKit features. MapKit is currently no exception to this, and in this section, we'll start to build our MapView using this methodology. We'll create a UIViewRepresentable struct around the current MapKit control and add this directly into our SwiftUI recipe app.
Adding a Map with MapKit control
Implementing MapKit
We'll start by creating a new SwiftUI View; we'll create a new file in our Xcode project called RecipeMapView by highlighting...