another.im-ios/ConversationsClassic/ConversationsClassicApp.swift
2024-07-23 11:58:26 +02:00

32 lines
824 B
Swift

import Combine
import SwiftUI
let appState = AppState()
let store = AppStore(
initialState: appState,
reducer: AppState.reducer,
middlewares: [
loggerMiddleware(),
StartMiddleware.shared.middleware,
DatabaseMiddleware.shared.middleware,
AccountsMiddleware.shared.middleware,
XMPPMiddleware.shared.middleware,
RostersMiddleware.shared.middleware,
ChatsMiddleware.shared.middleware,
MessagesMiddleware.shared.middleware,
ConversationMiddleware.shared.middleware,
SharingMiddleware.shared.middleware,
FileMiddleware.shared.middleware
]
)
@main
struct ConversationsClassic: App {
var body: some Scene {
WindowGroup {
BaseNavigationView()
.environmentObject(store)
}
}
}