From a033cf9d5e8ffbda8b6f86cf3ce152b4ccb73187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Kwas=CC=81niewski?= Date: Tue, 25 Feb 2025 05:03:12 -0800 Subject: [PATCH] fix: remove UISceneDelegate from AppDelegate (#49628) Summary: After this change: https://github.com/facebook/react-native/pull/49078 UIWindowSceneDelegate is no longer needed. This wasn't removed in the original PR. ## Changelog: [iOS] [Removed] - Remove no longer needed UISceneDelegate Pull Request resolved: https://github.com/facebook/react-native/pull/49628 Test Plan: CI GREEN Reviewed By: cortinico Differential Revision: D70102384 Pulled By: cipolleschi fbshipit-source-id: e33185a4becd949a9f0ec1eabeeb4fe85ef3ee79 --- packages/helloworld/ios/HelloWorld/AppDelegate.swift | 2 +- packages/rn-tester/RNTester/AppDelegate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/helloworld/ios/HelloWorld/AppDelegate.swift b/packages/helloworld/ios/HelloWorld/AppDelegate.swift index 5ad67c9537c..30e8bf6cc93 100644 --- a/packages/helloworld/ios/HelloWorld/AppDelegate.swift +++ b/packages/helloworld/ios/HelloWorld/AppDelegate.swift @@ -11,7 +11,7 @@ import ReactAppDependencyProvider import UIKit @main -class AppDelegate: UIResponder, UIApplicationDelegate, UIWindowSceneDelegate { +class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? var reactNativeDelegate: ReactNativeDelegate? diff --git a/packages/rn-tester/RNTester/AppDelegate.h b/packages/rn-tester/RNTester/AppDelegate.h index 86bf5248de3..df578639dc4 100644 --- a/packages/rn-tester/RNTester/AppDelegate.h +++ b/packages/rn-tester/RNTester/AppDelegate.h @@ -9,7 +9,7 @@ #import #import -@interface AppDelegate : RCTDefaultReactNativeFactoryDelegate +@interface AppDelegate : RCTDefaultReactNativeFactoryDelegate @property (nonatomic, strong, nonnull) UIWindow *window; @property (nonatomic, strong, nonnull) RCTReactNativeFactory *reactNativeFactory;