Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions G7SensorKitUI/Views/G7SettingsViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down