39 lines
856 B
Swift
39 lines
856 B
Swift
|
import SwiftUI
|
||
|
|
||
|
struct AppRootView: View {
|
||
|
@EnvironmentObject var navigation: NavigationStore
|
||
|
|
||
|
var body: some View {
|
||
|
Group {
|
||
|
switch navigation.flow {
|
||
|
case .start:
|
||
|
StartScreen()
|
||
|
|
||
|
case .entering(let entering):
|
||
|
switch entering {
|
||
|
case .welcome:
|
||
|
WelcomeScreen()
|
||
|
|
||
|
case .login:
|
||
|
LoginScreen()
|
||
|
|
||
|
case .registration:
|
||
|
RegistrationScreen()
|
||
|
}
|
||
|
|
||
|
case .main(let main):
|
||
|
switch main {
|
||
|
case .contacts:
|
||
|
ContactsScreen()
|
||
|
|
||
|
case .conversations:
|
||
|
EmptyView()
|
||
|
|
||
|
case .settings:
|
||
|
EmptyView()
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|