From 8f596ba6c5b195036bf9d0658d39989d20e8c93b Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Fri, 12 Jun 2026 14:11:45 +0200 Subject: [PATCH] =?UTF-8?q?fix(apple):=20latency=20HUD=20=E2=80=94=20inter?= =?UTF-8?q?polate=20the=20(same-host)=20suffix,=20don't=20concat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The capture->client latency line concatenated a String onto a LocalizedStringKey (Text("...\(x, specifier:)..." + (cond ? "" : "...")), which doesn't type-check: the specifier: interpolation makes the literal a LocalizedStringKey, which has no '+'. Fold the conditional suffix into the interpolation instead — the Apple client didn't build on the latency-HUD commit (e04328f). Co-Authored-By: Claude Opus 4.8 (1M context) --- clients/apple/Sources/PunktfunkClient/ContentView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/apple/Sources/PunktfunkClient/ContentView.swift b/clients/apple/Sources/PunktfunkClient/ContentView.swift index 6bc3d1a..1105604 100644 --- a/clients/apple/Sources/PunktfunkClient/ContentView.swift +++ b/clients/apple/Sources/PunktfunkClient/ContentView.swift @@ -631,8 +631,7 @@ struct ContentView: View { if model.latencyValid { // Capture→client-receipt (skew-corrected); excludes the layer's decode+present — // see LatencyMeter. "(same-host)" when the host didn't answer the skew handshake. - Text("capture→client \(model.latencyP50Ms, specifier: "%.1f")/\(model.latencyP95Ms, specifier: "%.1f") ms p50/p95" - + (model.latencySkewCorrected ? "" : " (same-host)")) + Text("capture→client \(model.latencyP50Ms, specifier: "%.1f")/\(model.latencyP95Ms, specifier: "%.1f") ms p50/p95\(model.latencySkewCorrected ? "" : " (same-host)")") .font(.system(.caption2, design: .monospaced)) .foregroundStyle(.secondary) }