another.im-ios/Monal/another.im/Views/RootView.swift

29 lines
622 B
Swift
Raw Normal View History

2024-11-18 14:53:52 +00:00
import SwiftUI
2024-11-19 14:05:25 +00:00
struct RootView: View {
2024-11-19 12:59:22 +00:00
@EnvironmentObject var wrapper: MonalXmppWrapper
2024-11-19 14:19:28 +00:00
@Environment(\.router) var router
2024-11-19 12:59:22 +00:00
2024-11-18 14:53:52 +00:00
var body: some View {
2024-11-19 14:19:28 +00:00
ZStack {
Color.Material.Background.dark
Image(.aimLogo)
.resizable()
.frame(width: 200, height: 200)
2024-11-18 14:53:52 +00:00
}
2024-11-19 14:19:28 +00:00
.ignoresSafeArea()
2024-11-19 12:59:22 +00:00
.onAppear {
2024-11-19 14:19:28 +00:00
switch wrapper.accountsAvailability {
case .noAccounts:
break
case .someEnabled:
break
case .allDisabled:
break
}
2024-11-19 12:59:22 +00:00
}
2024-11-18 14:53:52 +00:00
}
}