a31bc807cb
SwiftUI app for the MeshMonitor REST API: setup screen with token storage in Keychain, welcome dashboard mirroring the Emacs welcome buffer, and channel/node/DM/unread lists with a shared chat view supporting both channel and direct messages.
16 lines
229 B
Swift
16 lines
229 B
Swift
import SwiftUI
|
|
|
|
struct RootView: View {
|
|
@Environment(Settings.self) private var settings
|
|
|
|
var body: some View {
|
|
Group {
|
|
if settings.isConfigured {
|
|
WelcomeView()
|
|
} else {
|
|
SetupView(isInitial: true)
|
|
}
|
|
}
|
|
}
|
|
}
|