@@ -6,33 +6,38 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
66
77 private lazy var reactInstance = ReactInstance ( )
88
9- func sceneDidDisconnect( _: UIScene ) {
9+ func sceneDidDisconnect( _ scene : UIScene ) {
1010 // Called as the scene is being released by the system.
1111 // This occurs shortly after the scene enters the background, or when its session is discarded.
1212 // Release any resources associated with this scene that can be re-created the next time the scene connects.
1313 // The scene may re-connect later, as its session was not neccessarily discarded (see
1414 // `application:didDiscardSceneSessions` instead).
15+ // sceneDidDisconnect(_:)
1516 }
1617
17- func sceneDidBecomeActive( _: UIScene ) {
18+ func sceneDidBecomeActive( _ scene : UIScene ) {
1819 // Called when the scene has moved from an inactive state to an active state.
1920 // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
21+ // sceneDidBecomeActive(_:)
2022 }
2123
22- func sceneWillResignActive( _: UIScene ) {
24+ func sceneWillResignActive( _ scene : UIScene ) {
2325 // Called when the scene will move from an active state to an inactive state.
2426 // This may occur due to temporary interruptions (ex. an incoming phone call).
27+ // sceneWillResignActive(_:)
2528 }
2629
27- func sceneWillEnterForeground( _: UIScene ) {
30+ func sceneWillEnterForeground( _ scene : UIScene ) {
2831 // Called as the scene transitions from the background to the foreground.
2932 // Use this method to undo the changes made on entering the background.
33+ // sceneWillEnterForeground(_:)
3034 }
3135
32- func sceneDidEnterBackground( _: UIScene ) {
36+ func sceneDidEnterBackground( _ scene : UIScene ) {
3337 // Called as the scene transitions from the foreground to the background.
3438 // Use this method to save data, release shared resources, and store enough scene-specific state information
3539 // to restore the scene back to its current state.
40+ // sceneDidEnterBackground(_:)
3641 }
3742
3843 func scene( _ scene: UIScene , openURLContexts URLContexts: Set < UIOpenURLContext > ) {
@@ -51,6 +56,12 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
5156 " URLContexts " : URLContexts,
5257 ]
5358 )
59+
60+ // scene(_:openURLContexts:)
61+ }
62+
63+ func scene( _ scene: UIScene , continue userActivity: NSUserActivity ) {
64+ // scene(_:continue:)
5465 }
5566}
5667
@@ -65,8 +76,8 @@ extension SceneDelegate {
6576 }
6677
6778 func scene( _ scene: UIScene ,
68- willConnectTo _ : UISceneSession ,
69- options _ : UIScene . ConnectionOptions )
79+ willConnectTo session : UISceneSession ,
80+ options connectionOptions : UIScene . ConnectionOptions )
7081 {
7182 // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene
7283 // `scene`.
@@ -86,6 +97,8 @@ extension SceneDelegate {
8697 self . window = window
8798 window. makeKeyAndVisible ( )
8899 }
100+
101+ // scene(_:willConnectTo:options:)
89102 }
90103}
91104
@@ -97,8 +110,8 @@ extension SceneDelegate {
97110
98111extension SceneDelegate {
99112 func scene( _ scene: UIScene ,
100- willConnectTo _ : UISceneSession ,
101- options _ : UIScene . ConnectionOptions )
113+ willConnectTo session : UISceneSession ,
114+ options connectionOptions : UIScene . ConnectionOptions )
102115 {
103116 guard let windowScene = scene as? UIWindowScene else {
104117 assertionFailure ( " Default scene configuration should have been loaded by now " )
@@ -120,6 +133,8 @@ extension SceneDelegate {
120133 self . window = window
121134
122135 window. makeKeyAndVisible ( )
136+
137+ // scene(_:willConnectTo:options:)
123138 }
124139}
125140
0 commit comments