QR Code Scan Failure
Nucleic-Session: 80E30D7B-70A8-479A-A9A8-7E267486EAE1 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user