Skip to content

Commit 20c2749

Browse files
committed
remove: GlassViewController is no longer needed (#67)
1 parent 543a2a1 commit 20c2749

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,6 @@ @interface RCTAppDelegate () <
5151
}
5252
@end
5353

54-
#if TARGET_OS_VISION
55-
@interface GlassViewController : UIViewController
56-
57-
@end
58-
59-
@implementation GlassViewController
60-
61-
- (UIContainerBackgroundStyle)preferredContainerBackgroundStyle {
62-
return UIContainerBackgroundStyleGlass;
63-
}
64-
65-
@end
66-
#endif
67-
68-
6954
static NSDictionary *updateInitialProps(NSDictionary *initialProps, BOOL isFabricEnabled)
7055
{
7156
NSMutableDictionary *mutableProps = [initialProps mutableCopy] ?: [NSMutableDictionary new];
@@ -210,11 +195,7 @@ - (void)_logWarnIfCreateRootViewWithBridgeIsOverridden
210195

211196
- (UIViewController *)createRootViewController
212197
{
213-
#if TARGET_OS_VISION
214-
return [GlassViewController new];
215-
#else
216198
return [UIViewController new];
217-
#endif
218199
}
219200

220201
- (void)setRootView:(UIView *)rootView toRootViewController:(UIViewController *)rootViewController

0 commit comments

Comments
 (0)