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

25 lines
586 B
Swift
Raw Permalink 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 17:47:51 +00:00
if clientsStore.listState != .haveSomeEnabled {
RouterView { _ in
WelcomeScreen()
}
} else {
RouterView { _ in
MainTabScreen()
}
}
} else {
StartScreen()
}
}
}
}