From 741f7e0e315753c7a7311e4efac69f354023f186 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Sat, 31 Oct 2026 18:50:28 -0500 Subject: [PATCH] Hide Read on Apple Watch when the app doesn't support it Uses CGMManagerDelegate.supportsWatchDirectRead(for:). Apps that don't implement it, such as Trio, no longer show the option. --- G7SensorKitUI/Views/G7SettingsViewModel.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/G7SensorKitUI/Views/G7SettingsViewModel.swift b/G7SensorKitUI/Views/G7SettingsViewModel.swift index 303637a..12926c3 100644 --- a/G7SensorKitUI/Views/G7SettingsViewModel.swift +++ b/G7SensorKitUI/Views/G7SettingsViewModel.swift @@ -166,9 +166,10 @@ class G7SettingsViewModel: ObservableObject { // MARK: - Watch direct read - /// Offered when a paired watch has the app installed, or while it is on; otherwise the screen is - /// unchanged. + /// Offered when the app supports it and a paired watch has the app installed, or while it is on; + /// otherwise the screen is unchanged. var showsWatchDirectRead: Bool { + guard cgmManager.cgmManagerDelegate?.supportsWatchDirectRead(for: cgmManager) == true else { return false } if watchDirectReadEnabled { return true } guard WCSession.isSupported() else { return false } let session = WCSession.default