update buttons on welcome screen to work for macos

This commit is contained in:
Satindar Dhillon
2022-10-12 13:23:22 -07:00
parent 903e58b3c5
commit b3310c61c7

View File

@ -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) {