Error message: coordinate region

import SwiftUI
import MapKit

struct LocationsView: View {
@EnvironmentObject private var vm: LocationsViewModel
@State private var mapRegion: MKCoordinateRegion = MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: 41.8902, longitude: 12.4922), span: MKCoordinateSpan(latitudeDelta: 0.1, longitudeDelta: 0.1))
var body: some View {

        Map(coordinateRegion: $vm.mapRegion)


preview {
I get a warning: 'init(coordinateRegion:interactionModes:showsUserLocation:userTrackingMode:)' was deprecated in iOS 17.0: Use Map initializers that take a MapContentBuilder instead. What can I make to fix this code?