easy link to website instead of the complicated sheet
This commit is contained in:
@@ -25,19 +25,10 @@ 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
|
||||||
}
|
}
|
||||||
.padding(.top, 20)
|
.padding(.top, 20)
|
||||||
|
|||||||
Reference in New Issue
Block a user