Код: Выделить всё
if CLLocationManager.locationServicesEnabled() {
switch CLLocationManager.authorizationStatus() {
case .restricted, .denied:
hasPermission = false
default:
hasPermission = true
}
} else {
print("Location services are not enabled")
}
}
Код: Выделить всё
'authorizationStatus()' was deprecated in iOS 14.0
Подробнее здесь: https://stackoverflow.com/questions/640 ... -on-ios-14
Мобильная версия