From fa553b1e2a522d214bbdb4fe7d9f64a865690f99 Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Thu, 11 Jun 2026 11:55:26 +0200 Subject: [PATCH] fix(apple/iOS): action buttons back into one shared glass pill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ToolbarSpacer split into separate circles was the wrong read — with the inline-large title row in place, the expected header is the single grouped pill (the system default for adjacent trailing items). Dropped the spacer and the availability fork; the two trailing items now share one pill next to the title. Co-Authored-By: Claude Fable 5 --- .../apple/Sources/PunktfunkClient/ContentView.swift | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/clients/apple/Sources/PunktfunkClient/ContentView.swift b/clients/apple/Sources/PunktfunkClient/ContentView.swift index 306ac10..e504a1f 100644 --- a/clients/apple/Sources/PunktfunkClient/ContentView.swift +++ b/clients/apple/Sources/PunktfunkClient/ContentView.swift @@ -110,16 +110,9 @@ struct ContentView: View { #endif .toolbar { #if os(iOS) - // Each action gets its own full-size glass circle (system-app style) - // instead of sharing one compact pill. - if #available(iOS 26.0, *) { - ToolbarItem(placement: .topBarTrailing) { settingsButton } - ToolbarSpacer(.fixed, placement: .topBarTrailing) - ToolbarItem(placement: .topBarTrailing) { addHostButton } - } else { - ToolbarItem { settingsButton } - ToolbarItem(placement: .primaryAction) { addHostButton } - } + // Adjacent trailing items share one glass pill (the system default). + ToolbarItem(placement: .topBarTrailing) { settingsButton } + ToolbarItem(placement: .topBarTrailing) { addHostButton } #else ToolbarItem(placement: .primaryAction) { addHostButton