From b3310c61c7c6dbe693ef7c5e51ce67bbb2b5236a Mon Sep 17 00:00:00 2001 From: Satindar Dhillon Date: Wed, 12 Oct 2022 13:23:22 -0700 Subject: [PATCH] update buttons on welcome screen to work for macos --- .../OmnivoreKit/Sources/App/Views/WelcomeView.swift | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift b/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift index 6e3baa145..ab9362812 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WelcomeView.swift @@ -43,7 +43,15 @@ struct WelcomeView: View { headlineText Button( - action: { showAboutPage = true }, + action: { + #if os(iOS) + showAboutPage = true + #else + if let url = URL(string: "https://omnivore.app/about") { + NSWorkspace.shared.open(url) + } + #endif + }, label: { HStack(spacing: 4) { Text("Learn more") @@ -159,6 +167,9 @@ struct WelcomeView: View { } ) .padding(.vertical) + #if os(macOS) + .buttonStyle(PlainButtonStyle()) + #endif return VStack(alignment: .center, spacing: 16) {