another.im-ios/ConversationsClassic/View/AppRootView.swift
2024-08-11 13:09:29 +02:00

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()
}
}
}
}
}