diff --git a/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift b/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift index 2017f245..3624d6c3 100644 --- a/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift +++ b/TalerWallet1/Views/Settings/Exchange/ExchangeListView.swift @@ -41,6 +41,7 @@ struct ExchangeListView: View { #endif @State private var showAlert: Bool = false + @State private var urlTaken: Bool = false @State private var newExchange: String = EXCHANGE + DEMO // without HTTPS func checkExchanges() { @@ -74,10 +75,12 @@ struct ExchangeListView: View { .navigationTitle(TITLE_EXCHANGES) .navigationBarItems(trailing: plusButton) .task { - if let newUrl = url { + if let newUrl = url, !urlTaken { + // Do not clear `url`: it is URLSheet's passedURL, and + // clearing it replaces this view by "Scanning..." for good + urlTaken = true newExchange = newUrl.trimmedString showAlert = true - url = nil } else { checkExchanges() }