Update OnboardingTrioView.swift

This commit is contained in:
talksik
2021-12-19 23:41:02 -08:00
parent 9f71d715a0
commit 199e6b06cc
@@ -12,6 +12,7 @@ struct OnboardingTrioView: View {
@EnvironmentObject var navigationStack: NavigationStack @EnvironmentObject var navigationStack: NavigationStack
var body: some View { var body: some View {
ZStack(alignment: .topLeading) {
TabView { 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_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.")
@@ -39,6 +40,28 @@ struct OnboardingTrioView: View {
.tabViewStyle(.page(indexDisplayMode: .automatic)) .tabViewStyle(.page(indexDisplayMode: .automatic))
.ignoresSafeArea(.all) .ignoresSafeArea(.all)
HStack(alignment: .center) {
Button {
self.navigationStack.pop()
} label: {
Label("back", systemImage:"chevron.left")
.labelStyle(.iconOnly)
.font(.title2)
}
Spacer()
Button {
} label: {
Text("Skip")
.foregroundColor(NirvanaColor.dimTeal)
}
}
.padding()
}
} }
} }