simple fix for the problem with the waves not being there
This commit is contained in:
@@ -11,7 +11,7 @@ import NavigationStack
|
||||
struct ContentView: View {
|
||||
var body: some View {
|
||||
NavigationStackView {
|
||||
RouterView()
|
||||
OnboardingTrioView()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,33 +12,33 @@ 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)
|
||||
)
|
||||
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))
|
||||
)
|
||||
}
|
||||
.navigationBarHidden(true)
|
||||
.tabViewStyle(.page(indexDisplayMode: .automatic))
|
||||
.ignoresSafeArea(.all)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// 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()
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// 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()
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
//
|
||||
// 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()
|
||||
}
|
||||
}
|
||||
@@ -94,19 +94,20 @@ struct OnboardingTemplateView: View {
|
||||
VStack(alignment: .leading) {
|
||||
|
||||
Text(self.mainLeadingActionText! + " ")
|
||||
.font(.title)
|
||||
.font(.largeTitle)
|
||||
.foregroundColor(NirvanaColor.black)
|
||||
.fontWeight(.medium)
|
||||
+ Text(self.mainHighlightedActionText! + " ")
|
||||
.font(.title)
|
||||
.font(.largeTitle)
|
||||
.foregroundColor(NirvanaColor.teal)
|
||||
.fontWeight(.medium)
|
||||
+ Text(self.mainTrailingActionText!)
|
||||
.font(.title)
|
||||
.font(.largeTitle)
|
||||
.foregroundColor(NirvanaColor.black)
|
||||
.fontWeight(.medium)
|
||||
|
||||
Text(self.subActionText!)
|
||||
.font(.headline)
|
||||
.foregroundColor(Color.black.opacity(0.7))
|
||||
.padding(.top, 5)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user