Initial Commit
This commit is contained in:
15
Calendarr iOS/Views/RootView.swift
Normal file
15
Calendarr iOS/Views/RootView.swift
Normal file
@@ -0,0 +1,15 @@
|
||||
import SwiftUI
|
||||
|
||||
struct RootView: View {
|
||||
@Environment(AppState.self) var appState
|
||||
|
||||
var body: some View {
|
||||
if !appState.isConfigured {
|
||||
ServerSetupView()
|
||||
} else if !appState.isLoggedIn {
|
||||
LoginView()
|
||||
} else {
|
||||
MainTabView()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user