I want to Use the new Method of integrating maps as of summer 2020, but all I can find online is ways of doing it the old way (with UIViewRepresentable). I can't seem to figure out how to make it work without relying on UIViewRepresentable, which comes from the previous version of Swift. I've looked through the documentation but I cannot see anything built in that would allow me to change the type of the map to satellite. Any info on it would be appreciated.
Here is what I have now:
Here is what I have now:
Code Block Swift import SwiftUI import MapKit struct ContentView: View { @State private var coordinateRegion = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 40.7, longitude: -73.9), span: MKCoordinateSpan(latitudeDelta: 100.0, longitudeDelta: 100.0)) @ViewBuilder var body: some View { Map(coordinateRegion: $coordinateRegion) } }