import SwiftfulRouting import SwiftUI struct RootView: View { @EnvironmentObject var wrapper: MonalXmppWrapper var body: some View { if wrapper.accountsAvailability == .someEnabled { // main flow here Text("Test ME!") } else { RouterView { _ in WelcomeScreen() } } } }