another.im-ios/Monal/another.im/AnotherIMApp.swift
2024-11-20 17:37:10 +01:00

22 lines
615 B
Swift

import SwiftUI
@main
struct AnotherIMApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
@StateObject var wrapper = MonalXmppWrapper()
var body: some Scene {
WindowGroup {
RootView()
.environmentObject(wrapper)
}
}
}
class AppDelegate: NSObject, UIApplicationDelegate {
// func application(_: UIApplication, willFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
// // [IPC initializeForProcess:@"MainApp"];
// // [MLProcessLock initializeForProcess:@"MainApp"];
// }
}