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.
19 lines
382 B
Swift
19 lines
382 B
Swift
import SwiftUI
|
|
|
|
@main
|
|
struct MeshMonitorChatApp: App {
|
|
@State private var settings = Settings()
|
|
@State private var readTracker = ReadTracker()
|
|
@State private var store = MeshDataStore()
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
RootView()
|
|
.environment(settings)
|
|
.environment(APIClient(settings: settings))
|
|
.environment(readTracker)
|
|
.environment(store)
|
|
}
|
|
}
|
|
}
|