33 lines
808 B
Swift
33 lines
808 B
Swift
//
|
|
// ContentView.swift
|
|
// nirvana-ios
|
|
//
|
|
// Created by Arjun Patel on 12/11/21.
|
|
//
|
|
|
|
import SwiftUI
|
|
import NavigationStack
|
|
|
|
struct ContentView: View {
|
|
@EnvironmentObject var authSessionStore: AuthSessionStore
|
|
|
|
var body: some View {
|
|
NavigationStackView {
|
|
PhoneVerificationView()
|
|
// TODO: remove this commenting to enable natural user flow
|
|
// switch self.authSessionStore.sessionState {
|
|
// case SessionState.isAuthenticated:
|
|
// InnerCircleView()
|
|
// case SessionState.isLoggedOut:
|
|
// WelcomeView()
|
|
// }
|
|
}
|
|
}
|
|
}
|
|
|
|
struct ContentView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ContentView().environmentObject(AuthSessionStore())
|
|
}
|
|
}
|