Skip to content

Commit

Permalink
[a11y] Extend DemoController's alert auto-dismiss delay when VO is on (
Browse files Browse the repository at this point in the history
  • Loading branch information
joannaquu authored Jan 30, 2025
1 parent e93876b commit 082072c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Demos/FluentUIDemo_iOS/FluentUI.Demo/DemoController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 082072c

Please sign in to comment.