another.im-ios/ConversationsClassic/View/AppRootView.swift

39 lines
856 B
Swift
Raw Normal View History

2024-08-11 00:28:01 +00:00
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()
}
}
}
}
}