From 5e5c52e9590a1fc88c5deaecb4eccb00bc32fecb Mon Sep 17 00:00:00 2001 From: marty Date: Wed, 2 Oct 2024 15:36:59 +0900 Subject: [PATCH] add privacy policy and T&C --- iosApp/Modules/Screens/Main/UI/TabEnums.swift | 2 +- iosApp/Modules/Screens/Profile/ProfileView.swift | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/iosApp/Modules/Screens/Main/UI/TabEnums.swift b/iosApp/Modules/Screens/Main/UI/TabEnums.swift index 1d7ee4cc..7a5b1429 100644 --- a/iosApp/Modules/Screens/Main/UI/TabEnums.swift +++ b/iosApp/Modules/Screens/Main/UI/TabEnums.swift @@ -9,7 +9,7 @@ enum MainViewModelTab: CaseIterable { extension MainViewModelTab: CustomStringConvertible, Identifiable { var description: String { switch self { - case .profile: return "Profile" + case .profile: return "Account" case .library: return "Library" } } diff --git a/iosApp/Modules/Screens/Profile/ProfileView.swift b/iosApp/Modules/Screens/Profile/ProfileView.swift index c11b7b59..2376c04a 100644 --- a/iosApp/Modules/Screens/Profile/ProfileView.swift +++ b/iosApp/Modules/Screens/Profile/ProfileView.swift @@ -160,20 +160,16 @@ extension ProfileView { Spacer() VStack(spacing: 10) { - Button(action: { - // Terms & Conditions action - }) { - Text("Terms & Conditions") + Link(destination: URL(string: "https://newm.io/app-tos")!) { + Text("Privacy & Policy") .frame(maxWidth: .infinity) .padding() .background(Gradients.mainPrimary.opacity(0.08)) .foregroundColor(NEWMColor.midMusic.swiftUIColor) .cornerRadius(8) } - - Button(action: { - // Privacy & Policy action - }) { + + Link(destination: URL(string: "https://newm.io/app-privacy")!) { Text("Privacy & Policy") .frame(maxWidth: .infinity) .padding()