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"]; // } }