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

25 lines
637 B
Swift
Raw Normal View History

import SwiftfulRouting
import SwiftUI
struct RootView: View {
@EnvironmentObject var clientsStore: ClientsStore
var body: some View {
Group {
if clientsStore.ready {
2024-10-15 10:17:26 +00:00
if clientsStore.clients.isEmpty || clientsStore.clients.allSatisfy({ !$0.credentials.isActive }) {
RouterView { _ in
WelcomeScreen()
}
} else {
RouterView { _ in
MainTabScreen()
}
}
} else {
StartScreen()
}
}
}
}