Files
simplex-chat/apps/ios/Shared/SimpleXApp.swift
Evgeny Poberezkin cb602dd377 show received messages in chat, send command on Enter, fix Date parsing (#237)
* refactor UI and API, send command on Enter, fix Date parsing

* UI sheets to create connection and groups

* show received messages

* readme
2022-01-29 23:37:02 +00:00

28 lines
484 B
Swift

//
// SimpleXApp.swift
// Shared
//
// Created by Evgeny Poberezkin on 17/01/2022.
//
import SwiftUI
@main
struct SimpleXApp: App {
@StateObject private var chatModel = ChatModel()
init() {
hs_init(0, nil)
}
var body: some Scene {
WindowGroup {
ContentView()
.environmentObject(chatModel)
.onAppear() {
chatModel.currentUser = chatGetUser()
}
}
}
}