April 2020
Beginner
316 pages
8h 20m
English
Head on back over to RecipeMapView.swift and you should see the automatically generated template complete with a body and a text view.
Make the following change to add the MapView we just created:
struct RecipeMapView: View { var body: some View { MapView(lat: 37.3327177, lon: -122.0753671) }}
I've highlighted in the preceding code the main change we've made – we simply added in our MapView struct and passed in the latitude and longitude as parameters.
If you haven't already done so, press Resume on the automatic preview window to see the map being added to our canvas. ...
Read now
Unlock full access