Hi there,
currently working on tutorial 4/12 of Bucket List project and I am stuck within the first step : showing the inital map with the location of London.
In the preview window of Xcode 14.2 I see the map as expected, but when I run the app in the simulator I only see "Loading ..." and the same is true when running it on a real device (both run iOS 16.2).
struct MapKitView: View {
@State private var mapRegion = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 51.5, longitude: -0.12), span: MKCoordinateSpan(latitudeDelta: 0.2, longitudeDelta: 0.2))
var body: some View {
Map(coordinateRegion: $mapRegion)
}
}
struct MapKitView_Previews: PreviewProvider {
static var previews: some View {
MapKitView()
}
}
If it would happen only in the simulator I would assume it has someting to do with the date & time or the location / region settings (as found in some but maybe out-of-date answers on this topic with older MapKit APIs), but this does not make sense for the real iPhone.
I also started the Apple Map app on its on, so that all acknowledge dialogs are out of the way.
Are there new restrictions for using MapKit or the SwiftUI Map view that have to be fulfilled - Info.plist or something alike?