easy link to website instead of the complicated sheet

This commit is contained in:
talksik
2021-12-14 22:57:04 -08:00
parent 01b413ea1f
commit 351bebf3d1
@@ -25,19 +25,10 @@ struct WelcomeView: View {
.shadow(radius:10)
}
Button(
action: {
print("link to website learn more clicked")
showLearnMore.toggle()
},
label: {
Text("Learn More")
.bold()
})
.sheet(isPresented: $showLearnMore) {
LearnMoreView()
}
Link("Learn More", destination: URL(string: NirvanaConstants.landingPageUrl)!)
.font(.caption)
.foregroundColor(NirvanaColor.teal)
//learn more button to usenirvana.com
}
.padding(.top, 20)