From 308fc28448f75a90bae6a1a657a919c3a991ef85 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Fri, 3 Jul 2026 01:41:04 -0700 Subject: [PATCH] QR Code Scan Failure Nucleic-Session: 80E30D7B-70A8-479A-A9A8-7E267486EAE1 Co-authored-by: Nucleic --- .../NucleicRemote/Views/SettingsView.swift | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Views/SettingsView.swift b/NucleicRemote/NucleicRemote/Views/SettingsView.swift index 9bb8920..e5bf4a2 100644 --- a/NucleicRemote/NucleicRemote/Views/SettingsView.swift +++ b/NucleicRemote/NucleicRemote/Views/SettingsView.swift @@ -155,4 +155,26 @@ struct PairingIntroView: View { } } } + + /// A status line reflecting an in-flight or failed pairing attempt. Silent in the resting + /// `.unpaired` state (the intro copy already covers that). + @ViewBuilder + private var pairingStatus: some View { + switch store.connectivity { + case .connecting, .reconnecting: + Label("Connecting to your Mac…", systemImage: "arrow.triangle.2.circlepath") + .font(.footnote).foregroundStyle(.secondary) + case .hostOffline: + Label("Can't reach your Mac. Make sure it's on the same Wi‑Fi and remote access is on.", + systemImage: "wifi.exclamationmark") + .font(.footnote).foregroundStyle(.orange) + .multilineTextAlignment(.center).padding(.horizontal, 32) + case .failed(let message): + Label(message, systemImage: "exclamationmark.triangle.fill") + .font(.footnote).foregroundStyle(.red) + .multilineTextAlignment(.center).padding(.horizontal, 32) + case .connected, .unpaired: + EmptyView() + } + } }