View Controller contents behind my UIAlertController are being read by VoiceOver

Viewed 843

I have a UIAlertController that I am presenting with a view controller. Before presenting the UIAlertController I set accessibilityViewIsModal to true but when using VoiceOver it still focuses on, and reads out everything on the view controller "behind" the UIAlertController (the one that I presented my UIAlertController with)

let alertController = UIAlertController(title: alertTitle, message: nil, preferredStyle: .alert)
alertController.accessibilityViewIsModal = true
present(alertController, animated: true, completion: nil)

Any ideas on how I can prevent VoiceOver from reading the content not in the alert dialog?

1 Answers
Related