taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit b4c817bdebc246a69b3a45773d0aa515933c2f61
parent f883fa4b21f0aa9927713e4782a3dfbd08cbfaed
Author: Marc Stibane <marc@taler.net>
Date:   Fri, 17 Jul 2026 08:45:07 +0200

Alert cannot show more than 1 string/hint

Diffstat:
MTalerWallet1/Views/Sheets/URLSheet.swift | 45---------------------------------------------
1 file changed, 0 insertions(+), 45 deletions(-)

diff --git a/TalerWallet1/Views/Sheets/URLSheet.swift b/TalerWallet1/Views/Sheets/URLSheet.swift @@ -25,7 +25,6 @@ struct URLSheet: View { @State private var summary = EMPTYSTRING @State private var urlCommand: UrlCommand? @State private var passedURL: URL? - @State private var showAlert: Bool = false init(_ stack: CallStack, selectedBalance: Balance? = nil, urlToOpen: Binding<URL?>? = nil, @@ -49,23 +48,6 @@ struct URLSheet: View { } } - private var dismissAlertButton: some View { - Button("Cancel", role: .cancel) { - showAlert = false - if let lastError = controller.lastProgressError { - controller.lastProgressError = nil - // TODO: cancel wallet-core operation - } - } - } - - private var retryButton: some View { - Button("Retry now") { - showAlert = false - // TODO: retry wallet-core operation - } - } - var body: some View { #if PRINT_CHANGES let _ = Self._printChanges() @@ -120,33 +102,6 @@ struct URLSheet: View { } } } - .alert("Couldn't establish a connection", isPresented: $showAlert, - actions: { - if let lastPhase = controller.lastProgressPhase { - if lastPhase.phase == .retryable { - retryButton - } - } - dismissAlertButton - }, message: { - let lastError = controller.lastProgressError - let fallback = String(localized: "It seems that there is a problem with the network.") - Text(lastError?.error.hint ?? fallback) - if let lastPhase = controller.lastProgressPhase { - if lastPhase.phase == .retryable { - if let lastError, let delay = lastError.nextRetryDelay { - TimeView("Next retry in:", seconds: Int(delay.toSeconds())) - .padding(.vertical) - } - } - } - } - ) - .onChange(of: controller.stalledConnection) { isStalled in - if isStalled { - showAlert = true - } - } } } // MARK: -