adding in separate onboading files as the tabview solution won't work
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
//
|
||||
// OnboardingTrio.swift
|
||||
// nirvana-ios
|
||||
//
|
||||
// Created by Arjun Patel on 12/14/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import NavigationStack
|
||||
|
||||
struct OnboardingTrioView: View {
|
||||
@EnvironmentObject var navigationStack: NavigationStack
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
TabView {
|
||||
OnboardingTemplateView(imgName: "undraw_through_the_park_lxnl", mainLeadingActText: "Be", mainHighlightedActText: "yourself", mainTrailingActText: "again.", subActText: "No more endless feeds, media, fomo, anxiety...focus on you and be more present.")
|
||||
|
||||
OnboardingTemplateView(imgName: "undraw_connection_b-38-q", mainLeadingActText: "Be picky about your ", mainHighlightedActText: "inner circle.", mainTrailingActText: "", subActText: "You are who you hang out with. We kept things minimal because less is more...and we care.")
|
||||
|
||||
OnboardingTemplateView(imgName: "undraw_voice_assistant_nrv7", mainLeadingActText: "Buttery smooth convos with your ", mainHighlightedActText: "authentic voice.", mainTrailingActText: "", subActText: "Less screen time, no more meaningless texts. Start mindfully conversing without all of the noise.", bottomActArea: AnyView(
|
||||
VStack {
|
||||
Button {
|
||||
self.navigationStack.push(AddBasicInfoView())
|
||||
} label: {
|
||||
Text("Start Your Detox")
|
||||
.bold()
|
||||
.foregroundColor(NirvanaColor.white)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.vertical, 20)
|
||||
.background(NirvanaColor.teal)
|
||||
.clipShape(Capsule())
|
||||
.shadow(radius:10)
|
||||
}
|
||||
}.padding(.bottom, 30)
|
||||
)
|
||||
)
|
||||
}
|
||||
.navigationBarHidden(true)
|
||||
.tabViewStyle(.page(indexDisplayMode: .automatic))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct OnboardingTrioView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
OnboardingTrioView().environmentObject(AuthSessionStore())
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Onboarding-1.swift
|
||||
// nirvana-ios
|
||||
//
|
||||
// Created by Arjun Patel on 12/19/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct Onboarding_One: View {
|
||||
var body: some View {
|
||||
OnboardingTemplateView(imgName: "undraw_through_the_park_lxnl", mainLeadingActText: "Be", mainHighlightedActText: "yourself", mainTrailingActText: "again.", subActText: "No more endless feeds, media, fomo, anxiety...focus on you and be more present.")
|
||||
}
|
||||
}
|
||||
|
||||
struct Onboarding_One_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Onboarding_One()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Onboarding_Three.swift
|
||||
// nirvana-ios
|
||||
//
|
||||
// Created by Arjun Patel on 12/19/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct Onboarding_Three: View {
|
||||
var body: some View {
|
||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
||||
}
|
||||
}
|
||||
|
||||
struct Onboarding_Three_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Onboarding_Three()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Onboarding_Two.swift
|
||||
// nirvana-ios
|
||||
//
|
||||
// Created by Arjun Patel on 12/19/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct Onboarding_Two: View {
|
||||
var body: some View {
|
||||
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
|
||||
}
|
||||
}
|
||||
|
||||
struct Onboarding_Two_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
Onboarding_Two()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user