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-11-19 12:59:22 +00:00
|
|
|
@EnvironmentObject var wrapper: MonalXmppWrapper
|
|
|
|
|
2024-11-18 14:53:52 +00:00
|
|
|
var body: some View {
|
2024-11-20 13:31:51 +00:00
|
|
|
if wrapper.accountsAvailability == .someEnabled {
|
|
|
|
// main flow here
|
2024-11-20 15:52:49 +00:00
|
|
|
Text("Test ME!")
|
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
|
|
|
}
|
|
|
|
}
|