mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-10-11 04:02:13 +00:00
25 lines
899 B
Swift
25 lines
899 B
Swift
import UIKit
|
|
import Capacitor
|
|
|
|
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
|
var window: UIWindow?
|
|
|
|
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
|
|
guard let windowScene = scene as? UIWindowScene else { return }
|
|
|
|
window = UIWindow(windowScene: windowScene)
|
|
window?.rootViewController = CAPBridgeViewController()
|
|
window?.makeKeyAndVisible()
|
|
|
|
SceneDelegateProxy.shared.scene(scene, willConnectTo: session, options: connectionOptions)
|
|
}
|
|
|
|
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
|
|
SceneDelegateProxy.shared.scene(scene, openURLContexts: URLContexts)
|
|
}
|
|
|
|
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
|
|
SceneDelegateProxy.shared.scene(scene, continue: userActivity)
|
|
}
|
|
}
|