commit 0a0255ff380fbc9705be715ef487c7b9cceab9d0 parent d45fc69c957eb67430d24d4b98709585954ad6e7 Author: Marc Stibane <marc@taler.net> Date: Mon, 5 Oct 2026 08:35:49 +0200 open associated domain https URL Diffstat:
| M | TalerWallet1/Views/Main/MainView.swift | | | 13 | +++++++++++++ |
1 file changed, 13 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift @@ -369,6 +369,19 @@ struct MainView: View { #endif } } } + .onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { userActivity in + guard let url = userActivity.webpageURL else { return } + symLog.log(".onContinueUserActivity: \(url)") + // will be called on https://wallet.taler.net/link# + urlToOpen = url + DispatchQueue.main.asyncAfter(deadline: .now() + 0.01) { +#if TALER_NIGHTLY + sheetType = .url(url) +#else + showUrlSheet = true // raise sheet +#endif + } } + .onOpenURL { url in symLog.log(".onOpenURL: \(url)") // will be called on a taler:// scheme either