I have a mapkit that shows the user's location on the map. This was working, until I updated my iphone 14 to ios 16.3.1, Now it shows the user's location on New York(because the default location I set is NY)
I also have an autocomplete, but since that it thinks my location is in new york, it shows me places that are in new york.
This is my viewdidLoad
locationManager.delegate = self
locationManager.requestWhenInUseAuthorization()
locationManager.requestLocation()
locationManager.startUpdatingLocation()
mapView.showsUserLocation = true
let locationSearchTable = storyboard!.instantiateViewController(withIdentifier: "LocationSearchTable") as! LocationSearchTable
resultSearchController = UISearchController(searchResultsController: locationSearchTable)
resultSearchController?.searchResultsUpdater = locationSearchTable
let searchBar = resultSearchController!.searchBar
searchBar.sizeToFit()
searchBar.placeholder = "Search for restaurants"
navigationItem.titleView = resultSearchController?.searchBar
resultSearchController?.hidesNavigationBarDuringPresentation = false
definesPresentationContext = true
locationSearchTable.mapView = mapView
locationSearchTable.handleMapSearchDelegate = self