19 lines
383 B
Swift
19 lines
383 B
Swift
import SwiftfulRouting
|
|
import SwiftUI
|
|
|
|
struct RootView: View {
|
|
@EnvironmentObject var wrapper: WrapperXMPP
|
|
|
|
var body: some View {
|
|
if wrapper.accountsAvailability == .someEnabled {
|
|
RouterView { _ in
|
|
MainTabScreen()
|
|
}
|
|
} else {
|
|
RouterView { _ in
|
|
WelcomeScreen()
|
|
}
|
|
}
|
|
}
|
|
}
|