another.im-ios/Monal/another.im/Views/RootView.swift
2024-11-21 14:32:42 +01:00

19 lines
388 B
Swift

import SwiftfulRouting
import SwiftUI
struct RootView: View {
@EnvironmentObject var wrapper: MonalXmppWrapper
var body: some View {
if wrapper.accountsAvailability == .someEnabled {
RouterView { _ in
MainTabScreen()
}
} else {
RouterView { _ in
WelcomeScreen()
}
}
}
}