Skip to content

Commit 58f6e18

Browse files
authored
remove: GlassViewController is no longer needed (#67)
1 parent e6df7ca commit 58f6e18

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
@@ -49,21 +49,6 @@ @interface RCTAppDelegate () <
4949
}
5050
@end
5151

52-
#if TARGET_OS_VISION
53-
@interface GlassViewController : UIViewController
54-
55-
@end
56-
57-
@implementation GlassViewController
58-
59-
- (UIContainerBackgroundStyle)preferredContainerBackgroundStyle {
60-
return UIContainerBackgroundStyleGlass;
61-
}
62-
63-
@end
64-
#endif
65-
66-
6752
static NSDictionary *updateInitialProps(NSDictionary *initialProps, BOOL isFabricEnabled)
6853
{
6954
NSMutableDictionary *mutableProps = [initialProps mutableCopy] ?: [NSMutableDictionary new];
@@ -180,11 +165,7 @@ - (UIView *)createRootViewWithBridge:(RCTBridge *)bridge
180165

181166
- (UIViewController *)createRootViewController
182167
{
183-
#if TARGET_OS_VISION
184-
return [GlassViewController new];
185-
#else
186168
return [UIViewController new];
187-
#endif
188169
}
189170

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

0 commit comments

Comments
 (0)