another.im-ios/AnotherIM/View/RootView.swift
2024-10-31 12:43:16 +01:00

25 lines
586 B
Swift

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