From 35a40363f2005d768edc6fa6fc967f37ff551667 Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Wed, 1 Jun 2022 10:49:00 -0700 Subject: [PATCH] link to about page on welcome screen --- apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift | 8 +++++++- .../Sources/Views/Buttons/GoogleAuthButton.swift | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift b/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift index 30173ad47..e07a6edb2 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift @@ -17,6 +17,7 @@ struct WelcomeView: View { @State private var showTermsLinks = false @State private var showTermsModal = false @State private var showPrivacyModal = false + @State private var showAboutPage = false @State private var selectedEnvironment = AppEnvironment.initialAppEnvironment @State private var containerSize: CGSize = .zero @@ -42,7 +43,7 @@ struct WelcomeView: View { headlineText Button( - action: { print("learn more button tapped") }, + action: { showAboutPage = true }, label: { HStack(spacing: 4) { Text("Learn more") @@ -106,6 +107,11 @@ struct WelcomeView: View { BasicWebAppView.termsConditionsWebView(baseURL: dataService.appEnvironment.webAppBaseURL) } } + .sheet(isPresented: $showAboutPage) { + if let url = URL(string: "https://omnivore.app/about") { + SafariView(url: url) + } + } .onTapGesture { showTermsLinks = true } diff --git a/apple/OmnivoreKit/Sources/Views/Buttons/GoogleAuthButton.swift b/apple/OmnivoreKit/Sources/Views/Buttons/GoogleAuthButton.swift index 11c71fd26..fdfffccef 100644 --- a/apple/OmnivoreKit/Sources/Views/Buttons/GoogleAuthButton.swift +++ b/apple/OmnivoreKit/Sources/Views/Buttons/GoogleAuthButton.swift @@ -16,6 +16,7 @@ public struct GoogleAuthButton: View { Text(LocalText.googleAuthButton) .font(isMacApp ? .appCaption : .appTitleThree) .foregroundColor(.black) + .fontWeight(Font.Weight.medium) } .frame(maxWidth: 300) .frame(height: isMacApp ? 30 : 54)