Firstvc в настоящее время представляет
present(selectionVC, animated: true, completion: nil)
, поэтому вы не можете представить предупреждение здесь
present(alert, animated: true)
Переместить это
func checkLocationStatus() {
let status = CLLocationManager.authorizationStatus()
if status == CLAuthorizationStatus.notDetermined {
let alert = UIAlertController(title: "Just a message", message: "HEYYY!", preferredStyle: .alert)
let action = UIAlertAction(title: "Dismiss", style: .default, handler: nil)
alert.addAction(action)
present(alert, animated: true)
}
}
на второй вк, и сделайте там презентацию