i'm trying to display a map with the user location's. I created a file named MapViewController.swift which contains the map, the user location function etc... But when I start the app it still starts the ContentView.swift, So how can I import the mapviewcontroller into the contentview?
display map
I created a file named MapViewController.swift
Seems you created two different types of codes, UIKit and SwiftUI.it still starts the ContentView.swift
Are you using MKMapView in MapViewController? Is MapViewController a subclass of UIViewController?
In SwiftUI, you usually use Map, do you have any View (not UIViewController) using Map?
You should better show your code.