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,18 +25,9 @@ struct WelcomeView: View {
.shadow(radius:10) .shadow(radius:10)
} }
Button( Link("Learn More", destination: URL(string: NirvanaConstants.landingPageUrl)!)
action: { .font(.caption)
print("link to website learn more clicked") .foregroundColor(NirvanaColor.teal)
showLearnMore.toggle()
},
label: {
Text("Learn More")
.bold()
})
.sheet(isPresented: $showLearnMore) {
LearnMoreView()
}
//learn more button to usenirvana.com //learn more button to usenirvana.com
} }