28 lines
641 B
Swift
28 lines
641 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
|
|
]
|
|
)
|
|
|
|
@main
|
|
struct ConversationsClassic: App {
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
BaseNavigationView()
|
|
.environmentObject(store)
|
|
}
|
|
}
|
|
}
|