diff --git a/SwiftProject/SwiftProject/AppDelegate.swift b/SwiftProject/SwiftProject/AppDelegate.swift index df1266f..941b0fb 100644 --- a/SwiftProject/SwiftProject/AppDelegate.swift +++ b/SwiftProject/SwiftProject/AppDelegate.swift @@ -87,6 +87,21 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // NotificationCenter.default.post(name: Notification.Name(rawValue: "NSZZHHasNewWindowExternal"), object: self, userInfo: ["newwindow":self.newWindow!]) // return UISceneConfiguration(name: "External configuration", sessionRole: connectingSceneSession.role) // } + + +// func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { +// print("appdelegate configurationForConnecting.....") +// let sceneConfiguration: UISceneConfiguration +// +// if connectingSceneSession.role == UISceneSession.Role.windowExternalDisplayNonInteractive { +// sceneConfiguration = UISceneConfiguration.init(name: "External", sessionRole: connectingSceneSession.role) +// +// } else { +// sceneConfiguration = UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) +// } +// +// return sceneConfiguration +// } }