2024-11-18 14:53:52 +00:00
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
@main
|
|
|
|
struct AnotherIMApp: App {
|
2024-11-20 15:52:49 +00:00
|
|
|
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
2024-11-19 12:59:22 +00:00
|
|
|
@StateObject var wrapper = MonalXmppWrapper()
|
|
|
|
|
2024-11-18 14:53:52 +00:00
|
|
|
var body: some Scene {
|
|
|
|
WindowGroup {
|
2024-11-20 13:31:51 +00:00
|
|
|
RootView()
|
|
|
|
.environmentObject(wrapper)
|
2024-11-18 14:53:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-11-20 15:52:49 +00:00
|
|
|
|
|
|
|
class AppDelegate: NSObject, UIApplicationDelegate {
|
|
|
|
// func application(_: UIApplication, willFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
|
|
|
|
// // [IPC initializeForProcess:@"MainApp"];
|
|
|
|
// // [MLProcessLock initializeForProcess:@"MainApp"];
|
|
|
|
// }
|
|
|
|
}
|