another.im-ios/ConversationsClassic/View/RootView.swift
2024-10-15 18:03:16 +02:00

25 lines
572 B
Swift

import SwiftfulRouting
import SwiftUI
struct RootView: View {
@EnvironmentObject var clientsStore: ClientsStore
var body: some View {
Group {
if clientsStore.ready {
if clientsStore.clients.isEmpty {
RouterView { _ in
WelcomeScreen()
}
} else {
RouterView { _ in
MainTabScreen()
}
}
} else {
StartScreen()
}
}
}
}