18 lines
366 B
Swift
18 lines
366 B
Swift
import SwiftfulRouting
|
|
import SwiftUI
|
|
|
|
struct RootView: View {
|
|
@EnvironmentObject var wrapper: MonalXmppWrapper
|
|
|
|
var body: some View {
|
|
if wrapper.accountsAvailability == .someEnabled {
|
|
// main flow here
|
|
EmptyView()
|
|
} else {
|
|
RouterView { _ in
|
|
WelcomeScreen()
|
|
}
|
|
}
|
|
}
|
|
}
|