* refactor UI and API, send command on Enter, fix Date parsing * UI sheets to create connection and groups * show received messages * readme
28 lines
484 B
Swift
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()
|
|
}
|
|
}
|
|
}
|
|
}
|