I found something when I use CLLocationManagerDelegate on VisionOS.
When I called func locationManagerDidChangeAuthorization
func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) {
switch manager.authorizationStatus {
case .notDetermined, .denied:
locationManager.requestWhenInUseAuthorization()
default:
locationManager.startUpdatingLocation()
guard let center = locationManager.location?.coordinate else { return }
isFollowing = false
mapCamera = .region(.init(center: center, span: .init(latitudeDelta: 0.005, longitudeDelta: 0.005)))
addItems()
}
}
Although I choose allow auth, locationManagerDidChangeAuthorization
wasn't called.