From 6eb1bfaa34842f90e301732fe6a9b500338f2707 Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 25 May 2023 11:03:24 +0200 Subject: [PATCH] Fix link opening --- LeCountdown/Views/Reusable/TipView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LeCountdown/Views/Reusable/TipView.swift b/LeCountdown/Views/Reusable/TipView.swift index 0a44507..79ddbc0 100644 --- a/LeCountdown/Views/Reusable/TipView.swift +++ b/LeCountdown/Views/Reusable/TipView.swift @@ -21,7 +21,7 @@ struct TipView: View { Text(tip.localizedString) if let link = tip.link { Button { - UIApplication.shared.canOpenURL(link) + UIApplication.shared.open(link) } label: { Text("Learn more") }.buttonStyle(.bordered)