From 7e2608799241abd2aa5e467656c29b3169762f92 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Wed, 28 Oct 2026 01:19:35 -0500 Subject: [PATCH] Mark the tappable status HUDs as buttons for VoiceOver The loop, pump and CGM HUDs open a screen when tapped, but had no button trait, so VoiceOver read their values without saying they can be activated. --- Loop/View Controllers/StatusTableViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Loop/View Controllers/StatusTableViewController.swift b/Loop/View Controllers/StatusTableViewController.swift index 70d95eebd3..3dbccfb485 100644 --- a/Loop/View Controllers/StatusTableViewController.swift +++ b/Loop/View Controllers/StatusTableViewController.swift @@ -1761,6 +1761,10 @@ final class StatusTableViewController: LoopChartsTableViewController { let cgmStatusTapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(cgmStatusTapped(_:))) hudView.cgmStatusHUD.addGestureRecognizer(cgmStatusTapGestureRecognizer) + for hud in [hudView.loopCompletionHUD, hudView.pumpStatusHUD, hudView.cgmStatusHUD] as [UIView] { + hud.accessibilityTraits.insert(.button) + } + configurePumpManagerHUDViews() configureCGMManagerHUDViews()