Hi,
I am following the tutorial
https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation
When I am at building the Mapview Step 5 of Section 6
var body: some View {
Map(coordinateRegion: $region)
}
I get an error as follows and the Preview Crashes
'init(coordinateRegion:interactionModes:showsUserLocation:userTrackingMode:)' was deprecated in iOS 17.0: Use Map initializers that take a MapContentBuilder instead.
How to correct this or prevent the Crash?