fmodf
b3b3b3aef7
Reviewed-on: narayana/conversations-classic-ios#1 Co-authored-by: fmodf <fmodf.ios@gmail.com> Co-committed-by: fmodf <fmodf.ios@gmail.com>
25 lines
572 B
Swift
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()
|
|
}
|
|
}
|
|
}
|
|
}
|