From 845fea8f42c121a58e7974e0b1fa1335474fc9e5 Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 12 Aug 2022 11:21:54 +0100 Subject: [PATCH] adding privacy policy links --- Mixonomer/Views/LoginScreen.swift | 7 +++++++ Mixonomer/Views/Settings/SettingsList.swift | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/Mixonomer/Views/LoginScreen.swift b/Mixonomer/Views/LoginScreen.swift index 44050bd..12c3ee7 100644 --- a/Mixonomer/Views/LoginScreen.swift +++ b/Mixonomer/Views/LoginScreen.swift @@ -183,6 +183,13 @@ struct LoginScreen: View { } .buttonStyle(.bordered) } + + Button(action: { + UIApplication.shared.open(URL(string: "https://mixonomer.sarsoo.xyz/privacy")!) + }) { + Text("Privacy Policy") + } + .padding(.top, 20) } .toast(isPresented: $showingToast, dismissAfter: 3.0){ ToastView(toastText) diff --git a/Mixonomer/Views/Settings/SettingsList.swift b/Mixonomer/Views/Settings/SettingsList.swift index 92e65c3..94ffe26 100644 --- a/Mixonomer/Views/Settings/SettingsList.swift +++ b/Mixonomer/Views/Settings/SettingsList.swift @@ -26,6 +26,13 @@ struct SettingsList: View { }) { Text("Launch Web Version") } + Button(action: { + if let url = URL(string: "https://mixonomer.sarsoo.xyz/privacy") { + UIApplication.shared.open(url) + } + }) { + Text("Privacy Policy") + } Button(action: { self.liveUser.logout() }) {