PAGE 1
import SwiftUI
struct LandingView: View {
@State private var isActive = false
var body: some View {
NavigationView{
VStack{
Text("FiTED")
.frame(width: 400, height: 120, alignment: .topLeading)
.font(.system(size: 100, weight: .medium))
.foregroundColor(.niceblueColor)
Text("Improve your health and fitness, while learning")
.frame(width: 400, height: 60, alignment: .topLeading)
.font(.system(size: 25))
.foregroundColor(.black)
Spacer().frame(height: 500)
NavigationLink(destination:
MainView(), isActive: $isActive){
Button(action: {
isActive = true
}){
HStack{
Text("Let's Go!")
Image(systemName: "arrow.right.circle.fill")
}
.font(.system(size: 24, weight: .semibold))
.foregroundColor(.white)
}
.buttonStyle(PrimaryButtonStyle())
}
}
}
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: