From 0ee7cf970cfa3d5cc02b1798b06895bb2ed76743 Mon Sep 17 00:00:00 2001 From: joshavant <830519+joshavant@users.noreply.github.com> Date: Fri, 5 Jun 2026 04:12:55 -0500 Subject: [PATCH] fix ios quick setup suppression toggle --- .../Gateway/GatewayQuickSetupSheet.swift | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/apps/ios/Sources/Gateway/GatewayQuickSetupSheet.swift b/apps/ios/Sources/Gateway/GatewayQuickSetupSheet.swift index 66a10d51e1c..b974029304c 100644 --- a/apps/ios/Sources/Gateway/GatewayQuickSetupSheet.swift +++ b/apps/ios/Sources/Gateway/GatewayQuickSetupSheet.swift @@ -95,7 +95,7 @@ struct GatewayQuickSetupSheet: View { .buttonStyle(.bordered) .disabled(self.connecting) - Toggle("Don’t show this again", isOn: self.$quickSetupDismissed) + self.fullRowToggle("Don’t show this again", isOn: self.$quickSetupDismissed) .padding(.top, 4) } else { Text("No gateways found yet. Make sure your gateway is running and Bonjour discovery is enabled.") @@ -135,6 +135,23 @@ struct GatewayQuickSetupSheet: View { self.gatewayController.gateways.first } + private func fullRowToggle(_ title: String, isOn: Binding) -> some View { + Toggle(title, isOn: isOn) + .contentShape(Rectangle()) + .overlay { + // Keep Toggle semantics for accessibility while making the full visual row tappable. + Button { + isOn.wrappedValue.toggle() + } label: { + Rectangle() + .fill(.clear) + .contentShape(Rectangle()) + } + .buttonStyle(.plain) + .accessibilityHidden(true) + } + } + private func gatewayProblemPrimaryActionTitle(_ problem: GatewayConnectionProblem) -> String { problem.canTrustRotatedCertificate ? "Trust certificate" : "Connect" }