another.im-ios/Monal/another.im/Views/RootView.swift
2024-11-19 17:07:51 +01:00

27 lines
640 B
Swift

import SwiftUI
struct RootView: View {
@EnvironmentObject var wrapper: MonalXmppWrapper
@Environment(\.router) var router
var body: some View {
ZStack {
Color.Material.Background.dark
Image(.aimLogo)
.resizable()
.frame(width: 200, height: 200)
}
.ignoresSafeArea()
.onAppear {
switch wrapper.accountsAvailability {
case .noAccounts, .allDisabled:
WelcomeScreen()
case .someEnabled:
// here will be main flow
EmptyView()
}
}
}
}