2024-11-20 13:31:51 +00:00
|
|
|
import SwiftfulRouting
|
2024-11-18 14:53:52 +00:00
|
|
|
import SwiftUI
|
|
|
|
|
2024-11-19 14:05:25 +00:00
|
|
|
struct RootView: View {
|
2024-12-02 15:50:23 +00:00
|
|
|
@EnvironmentObject var wrapper: WrapperXMPP
|
2024-11-19 12:59:22 +00:00
|
|
|
|
2024-11-18 14:53:52 +00:00
|
|
|
var body: some View {
|
2024-11-20 13:31:51 +00:00
|
|
|
if wrapper.accountsAvailability == .someEnabled {
|
2024-11-21 13:32:38 +00:00
|
|
|
RouterView { _ in
|
|
|
|
MainTabScreen()
|
|
|
|
}
|
2024-11-20 13:31:51 +00:00
|
|
|
} else {
|
|
|
|
RouterView { _ in
|
2024-11-19 16:07:47 +00:00
|
|
|
WelcomeScreen()
|
2024-11-19 14:19:28 +00:00
|
|
|
}
|
2024-11-19 12:59:22 +00:00
|
|
|
}
|
2024-11-18 14:53:52 +00:00
|
|
|
}
|
|
|
|
}
|