From 082072cf921a2878a7faac44ae8ba438a3eae6b2 Mon Sep 17 00:00:00 2001 From: Joanna Qu <55368679+joannaquu@users.noreply.github.com> Date: Thu, 30 Jan 2025 09:42:56 -0800 Subject: [PATCH] [a11y] Extend DemoController's alert auto-dismiss delay when VO is on (#2123) --- Demos/FluentUIDemo_iOS/FluentUI.Demo/DemoController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Demos/FluentUIDemo_iOS/FluentUI.Demo/DemoController.swift b/Demos/FluentUIDemo_iOS/FluentUI.Demo/DemoController.swift index 7afe9bbafc..8def63a770 100644 --- a/Demos/FluentUIDemo_iOS/FluentUI.Demo/DemoController.swift +++ b/Demos/FluentUIDemo_iOS/FluentUI.Demo/DemoController.swift @@ -96,7 +96,8 @@ class DemoController: UIViewController { present(alert, animated: true) if autoDismiss { - DispatchQueue.main.asyncAfter(deadline: .now() + 1) { + let delay: TimeInterval = UIAccessibility.isVoiceOverRunning ? 3 : 1 + DispatchQueue.main.asyncAfter(deadline: .now() + delay) { self.dismiss(animated: true) } } else {